this is my block in the event after file upload
from the documentation it should work. but im getting the error
Error: User has no permissions for specified resource
Most likely you have set some permission on directory.
Also, could you tell me what kind of block you are using (after file upload)?
I know “on Upload Success” event in ui-builder but i see your block has input unlike “on Upload Success”
its afterUpload event not using the UI
the user is the one who is uploading the file. no issue there
so he definitely have permission for the folder