I have a PHP script that I use to download various types of files (PDF, JPEG, RAR end other). Works great, however, I noticed a problem with the MIME type.
Is there a universal MIME type that I can safely use for "general purpose"? I am thinking of an application / octet stream for all file types.
Or should I do MIME for each file type separately?
It should deliver downloads, it does not matter directly open files in applications.
mime-types
Michal
source share