A MIME type is composed of two main components. These components are a video type and a sub-type. While MIME types can be used to help web servers understand a variety of elements including text, images, and audio. This article will focus on how to set a correct MIME type for your video files. Correct MIME types for serving video files. Problem in zip/rar MIME types - CodingForums. Codingforums.com problem in zip/rar MIME types I make upload script and I meet a problem is finding the suitable mime type for the zip and rar file, the zip work well in IE but doesn't work in firefox, and the rar doesn't work in both of them. But zip files and rar files are not associated with this type, so its weird that you should receive that mime type if you are only uploading zip and rar files. But here are some more mime types that might help you out.
![]()
Active7 years, 10 months ago
![]()
I have a problem with MIME-type while uploading a file to server from the web-interface. I used CI as engine for my website. I have FreeBSD with Apache 2.2.15 on the board.
The problem is:
UPD1. In my mime.types file these MIME-types are present with required type (ie. application/openxmlformats-officedocument.wordprocessingml.document)
UPD2. I wrote 'AddType app.../openxml... .docx' in httpd.conf directly and restart apache, but nothing happened. UPD3. Upload form has enctype 'multipart/form-mixed' UPD4. Content-type in Firebug`s NET-panel have a wrong MIME-type also
kirillorloff
kirillorloffkirillorloff
2 Answers
This is because
.docx files are actually ZIP files with a different extension. If you open one of them up in WinRAR or WinZIP you'll find dozens of .xml files inside them. My guess is that FreeBSD is not aware of the difference between a .docx and a .zip file, because they're the same thing.
Mime Types For Documents
That said, I'm really not sure what you're asking or what you're trying to achieve.
Mark Henderson
Mime Type Tiff♦Mark HendersonMime Types List
62.1k2929 gold badges165165 silver badges249249 bronze badges
I don't know about the CodeIgniter Framework, but I do know that I have seen a couple PHP based applications that have this problem. If you fire up wireshark and sniff the HTTP taffic you may see that the computer that uploads the file is setting the wrong MIME type. If your PHP application blindly assumes that the uploader knows the correct type there may not be much you can do.
Zoredache
Mime Type For Rar FileZoredacheMime Type For Zip File
114k3131 gold badges235235 silver badges385385 bronze badges
What Are Mime TypesNot the answer you're looking for? Browse other questions tagged apache-2.2freebsdmime or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |