#Applying file permissions with functions?

4 messages · Page 1 of 1 (latest)

severe spoke
#

My use case is a client wants to upload a file that file is going to have specific permissions, should i let the user upload that file to a function and let the function handle the permissions is it a possible thing to do and if so in what format should the file be converted to?

somber harness
#

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

severe spoke
#

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

somber harness