#Applying file permissions with functions?
4 messages · Page 1 of 1 (latest)
If the permissions are pre-defined then it's probably better to let the user upload directly to the bucket and then have a function trigger to apply the needed permissions. On the other hand, if the permissions are dynamic then have the user execute the function passing the relevant permissions after uploading to the bucket
I was thinking of letting the bucket permission for users only on create and then let the function apply read permission for specific users maybe that's the idea, thank you
That's also fine. The main point is not to pass the file data (bytes) to the function but upload directly to storage.