Unable to upload file via REST API with custom user role
Hi. I am trying to upload a file using the REST API. This is what I am doing:
1. Log in with a user that has a custom role called AdminUser and has permissions for everything, and I have restricted permissions to AuthenticatedUser and NonAuthenticatedUser roles so they can't upload files, only read them. I get the user-token without problems.
2. Send a request to the REST API to upload a file including the user-token I got from login:
3. KO response:
If I change the security configuration to allow NonAuthenticatedUser to upload files, it works. I don't know if there is a problem with security roles for file uploads, or maybe I am sending something wrong in the request. Could you please help me with it?