Back
[CLOSED] how to set MIME-Type of file while uploading it to storage?
- 0
- Self Hosted
- Functions
- Storage

when i upload my plist file to storage it saves it as MIME-type: text/xml instead i want it to be application/xml. or is there any way to update MIME type of file via functions? please help, new here.
TL;DR
The user wanted to know how to set the MIME-Type of a file while uploading it to storage. They discovered that it is done using a PHP function, but there seems to be no way to change it during the process. The user specifically mentioned that when uploading a plist file, it is saved with the MIME-Type 'text/xml' instead of 'application/xml' and they wanted to know if there was a way to update the MIME-Type of the file after uploading. The thread is closed and no solution is provided.
how to set MIME-Type of file while uploading it to storage?


okay

[CLOSED] how to set MIME-Type of file while uploading it to storage?
Recommended threads
- Web SDK chunk upload to Storage without ...
As discussed in this older thread (https://discord.com/channels/564160730845151244/1216821517749321808), the Read permission for Any needs to be enabled in orde...
- Storage getFilePreview for GIF file retu...
Used to work in 1.6.x but with 1.7.4 upgrade it seems to be broken.
- CORS errors with storage bucket
I have a javascript file in the storage bucket and I used the view endpoint in an `src` attribute of a `<script>` tag. But I am getting the `net::ERR_BLOCKED_BY...
