Uploaded zip files changing Mime type to application/octet-stream in static resources

847    Asked by ChrisDyer in Power BI , Asked on Apr 24, 2021

I'm trying to upload a zip file in static resources. Even after selecting a .zip file to upload , the uploaded document is displaying mime type as application/octet-stream instead of application/zipI even tried to change the mime type through developer console but got error stating the file is not a valid zip file.

Error : The specified Static Resource is not a valid zip file: Body

Uploaded document developer console error Mime type display after zip file upload

Answered by Dhananjay Singh

Really Zip mime type does not meter to access the static resources from the zip in visual force. But anyway this turns on the program you are using to create the zip file and the browser you are using. If you are using winrar to create the zip file and upload it through chrome or firefox it will change mime-type to octet-stream. But if you will use internet explorer for uploading the zip. you will see the mime type will be application/x-zip-compress.

Your Answer


Parent Categories