store image location in db + store owner and reference perms + extra perms (ref perms = perms of the note image originates and extra perms is any other perms - i.e. user wants to share image to other user without sharing reference note), php or nodejs file checks users clerk tokens and then serves image based on permissions
Log in to comment and vote
Comments1
Suleman Hussain
Jun 30, 2025
store image location in db + store owner and reference perms + extra perms (ref perms = perms of the note image originates and extra perms is any other perms - i.e. user wants to share image to other user without sharing reference note), php or nodejs file checks users clerk tokens and then serves image based on permissions