I am attempting to use the save Files from Byte Arrays API and it isn’t working. I receive a 404 error code. I’ve double checked the permissions for the folder and made sure that the folder does exist in the File Storage. I’ve tried it using cURL from the command line which I get a different error of: {“code”:4000,“message”:“User has no permissions to specified resource”}.
Also, If I change the HTTP call from PUT to POST, I receive a 200 but nothing is saved.
Go to Users page -> Security and restrictions. And please check permissions for not authenticated user (for files). All permissions are DENY. So you can not create new folder in file service.
In the case that the file doesn’t exist before the file upload, I am receiving a 404 response. This same error happens when the file exists before I upload via my application.
I have changed the permissions to allow all levels of File access and i’m still getting errors.
Please re-check permissions for files in file service (for files and for folders)
2. What are the acceptable types?
You can use only text/plain request.
You are correct I did need the “binary” in the URL and I missed that entirely from reading the docs. So the root path of the File Storage is https://api.backendless.com/<version>/files/binary/
If the data sent is not in the form of Base64, the file is saved but the non Base64 is garbage. The response code is still 200. (i.e - “bXkgY29vbCBub3Rl - extra data here!”)