UNCONFIRMED Bug 20726
File upload failing to set Content-Type: application/octet-stream
https://bugs.webkit.org/show_bug.cgi?id=20726
Summary File upload failing to set Content-Type: application/octet-stream
M Schneider
Reported 2008-09-08 07:38:19 PDT
Submitting an input type="file" with an unknown binary file type results in the server not handling the file correctly. This appears to be an issue on Windows where MIMETypeRegistry::getMIMETypeForExtension doesn't return a default of "application/octet-stream" when the MIME type is unknown. This results in no Content-Type line being sent to the server, which in turn keeps the server from processing the file properly. The file type that originally experienced this issue was a dbase III+ dbf. See the url for a sample file.
Attachments
Jon@Chromium
Comment 1 2009-04-03 15:25:55 PDT
Cuchaz
Comment 2 2009-08-23 17:43:03 PDT
This is also a problem in Google Chrome for linux, so it might not be a windows-only issue. On the server side, Struts2 thinks the content-type is null for such files. I'm not sure what headers are actually being sent.
Note You need to log in before you can comment on or make changes to this bug.