You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When uploading a file you at the moment you ca not set params like the ACL and ContentType. at the moment I need to change it manually after but this can be done in 1 request.
The text was updated successfully, but these errors were encountered:
When using the write() function to upload your content, it will internally send a HTTP request to your desired target and defines the ContentType header depending on the files extension. For example, if you upload to a users.json file, the content type will be application/json.
This of course doesn't work if the file extension doesn't match the actual content type of your file, in this case you could manually send an HTTP request with the help of reactphp/http. I don't think there are many cases where this should be needed, so I think using the extension for the content type currently works best.
When it comes to ACL, besides sending an HTTP header to set specific permissions, there are currently no other options available. It might be a good idea for the API to incorporate a function that allows for setting specific ACL permissions, but this concept still needs to be explored further. If you need this urgently, you can also reach out to us or help us by becoming as sponsor ❤️
I hope this helps.
I believe this should answer your question, so I will close this ticket for now.
I talked back with @clue and we came to the conclusion that it makes more sense to label this ticket as a "new feature" idea, so I'll reopen this again ^^
When uploading a file you at the moment you ca not set params like the ACL and ContentType. at the moment I need to change it manually after but this can be done in 1 request.
The text was updated successfully, but these errors were encountered: