Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zip mime types, when to pick which one

Tags:

mime-types

zip

So far for Mime Types for Zip files I've seen:

  • application/octet-stream
  • multipart/x-zip
  • application/zip
  • application/zip-compressed
  • application/x-zip-compressed

I guess my question is which is the "best" and why? Why is there so many choices? I use winrar and it doesn't seem to care what the Mimetype is, but WinZip seems to only like multipart/x-zip and application/octet-stream. is there a Mimetype I can have all Zip files be downloaded as that will work in all programs?

thanks!

like image 804
numone Avatar asked Dec 10 '10 17:12

numone


People also ask

What is the MIME type for zip files?

An official list of mime types can be found at The Internet Assigned Numbers Authority (IANA) . According to their list Content-Type header for zip is application/zip . The media type for rar files is not officially registered at IANA but the unofficial commonly used mime-type value is application/x-rar-compressed .

How do I specify a MIME type?

A MIME type has two parts: a type and a subtype. They are separated by a slash (/). For example, the MIME type for Microsoft Word files is application and the subtype is msword.


1 Answers

Registered with IANA MIME type is application/zip : http://www.iana.org/assignments/media-types/application/zip

WinZip is not a reference implementation (since originally ZIP standard is developed by PkWare).

like image 68
Nickolay Olshevsky Avatar answered Oct 23 '22 12:10

Nickolay Olshevsky