Uploaded zip files changing Mime type to application/octet-stream in static resources
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/zip. I 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
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.