firefox - Html Form : bad mime type for .zip files -
situation
i have following form :
<form action="/url/to/action" method="post" enctype="multipart/form-data"> <ul> <li><label>file1 <input type="file" name="file1" /></label></li> <li><label>file2 <input type="file" name="file2" /></label></li> <li><input type="submit" value="import"/></li> </ul> </form>
using firefox :
- when upload
*.gz
file, sent mime-type :application/x-gzip
- when upload
*.xml
file, sent mime-type :text/xml
this ok. :
- when upload
*.zip
file, sent mime-type :text/html
instead ofapplication/zip
(i checked content of post request in firebug console.)
i'm pretty sure worked not long ago.
question
is bug related firefox ? has else experienced ?
i'm running ff 29.0 / ubuntu 14.04.
maybe try add mimetypes .htaccess like
addtype application/zip zip zip
Comments
Post a Comment