Issue 139105 in chromium: incorrect mime-type for csv-files

1,126 views
Skip to first unread message

chro...@googlecode.com

unread,
Jul 26, 2012, 4:06:14 AM7/26/12
to chromi...@chromium.org
Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 Area-Undefined OS-Windows

New issue 139105 by heiko.adams: incorrect mime-type for csv-files
http://code.google.com/p/chromium/issues/detail?id=139105

Chrome Version : 20.0.1132.57 (Offizieller Build 145807) m
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Other browsers tested:
Firefox 14.x: OK

What steps will reproduce the problem?
1. create a website containing a <input type="file" id="uploadFile"
name="uploadFile" size="50">
2. upload a csv-file and check the mime-type of that file

What is the expected result?
Chrome sends "application/vnd.ms-excel" as mime-type

What happens instead?
Chrome should send either "text/csv" or "text/comma-seperated-value" as
mime-type

Please provide any additional information below. Attach a screenshot if
possible.




chro...@googlecode.com

unread,
Jul 26, 2012, 11:36:00 AM7/26/12
to chromi...@chromium.org
Updates:
Cc: will...@chromium.org
Labels: -Area-Undefined Area-Internals Internals-Network

Comment #1 on issue 139105 by mme...@chromium.org: incorrect mime-type for
csv-files
http://code.google.com/p/chromium/issues/detail?id=139105

Labeling this a network bug, in the hopes that someone more familiar with
where upload mime types come from (WebKit? The Windows registry? Format
sniffing in net/?) can better triage this bug.

chro...@googlecode.com

unread,
Jul 26, 2012, 4:42:31 PM7/26/12
to chromi...@chromium.org
Updates:
Cc: aba...@chromium.org

Comment #2 on issue 139105 by will...@chromium.org: incorrect mime-type
for csv-files
http://code.google.com/p/chromium/issues/detail?id=139105

(No comment was entered for this change.)

chro...@googlecode.com

unread,
Jul 30, 2012, 3:56:57 AM7/30/12
to chromi...@chromium.org

Comment #3 on issue 139105 by minz...@gmail.com: incorrect mime-type for
csv-files
http://code.google.com/p/chromium/issues/detail?id=139105

Incorrect mime-type for csv-files when downloading a dynamically created
csv file:
There is another issue happened when I download a dynamically created csv
file. The file name is always set as "export" (which is the path name), but
not the "list.csv" in the response headers.

Is that a bug associated with this issue?

Response Headers:
----------------------------------------------------------
Content-Disposition:: attachment; filename=list.csv;
Content-Length:2050
Content-Type:text/csv;charset=MS932
----------------------------------------------------------

chro...@googlecode.com

unread,
Jul 30, 2012, 5:03:22 AM7/30/12
to chromi...@chromium.org

Comment #4 on issue 139105 by heiko.adams: incorrect mime-type for csv-files
http://code.google.com/p/chromium/issues/detail?id=139105

I don't think so. In my case its about uploading files and the mime-type
which chrome sends to the server is incorrect

chro...@googlecode.com

unread,
Jul 30, 2012, 10:25:45 AM7/30/12
to chromi...@chromium.org

Comment #5 on issue 139105 by mme...@chromium.org: incorrect mime-type for
csv-files
http://code.google.com/p/chromium/issues/detail?id=139105

minzhiR: You have two colons after Content-Disposition. Per spec
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html), I believe there
also shouldn't be an extra semi-colon at the end of the line, though I
assume we do handle that case.

chro...@googlecode.com

unread,
Jul 30, 2012, 12:37:46 PM7/30/12
to chromi...@chromium.org
Updates:
Owner: aba...@chromium.org

Comment #6 on issue 139105 by aba...@chromium.org: incorrect mime-type for
csv-files
http://code.google.com/p/chromium/issues/detail?id=139105

As mentioned in Comment #5, the Content-Disposition is malformed due to the
extra : character. There's an effort to harmonize the error handling
behavior of all the browsers, and we've implemented the latest version of
the spec.

Thanks for reporting the issue. Ideally, we'd like all browsers to
implement the spec, so we're likely to wait a bit before changing our
behavior here to see if this issue occurs on more web sites. If you notice
this issue on other sites as well, please add a comment to this bug so that
we can make an informed decision about whether to change our behavior.

Thanks again.

chro...@googlecode.com

unread,
Jul 30, 2012, 8:37:13 PM7/30/12
to chromi...@chromium.org

Comment #7 on issue 139105 by minz...@gmail.com: incorrect mime-type for
csv-files
http://code.google.com/p/chromium/issues/detail?id=139105

To mmenke:
Thanks for your comment, I missed the extra colon by an oversight. That
download works well in IE and Firefox with the extra colon, so I thought it
was a bug. That is my mistake.
Thank you again.


chro...@googlecode.com

unread,
May 14, 2014, 10:17:10 AM5/14/14
to chromi...@chromium.org

Comment #9 on issue 139105 by sanderde...@gmail.com: incorrect mime-type
for csv-files
http://code.google.com/p/chromium/issues/detail?id=139105

I can confirm that Chrome (34, Windows 8 x64) still sends the wrong mime
type. The RFC (http://tools.ietf.org/html/rfc4180) specifies text/csv but
Chrome sends application/vnd.ms-excel instead.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

chro...@googlecode.com

unread,
Nov 29, 2014, 6:54:23 PM11/29/14
to chromi...@chromium.org

Comment #10 on issue 139105 by shk...@gmail.com: incorrect mime-type for
csv-files
https://code.google.com/p/chromium/issues/detail?id=139105

I am having this issue, but it appears to be the same in firefox. This may
be a window issue and not a chrome issue?

chro...@googlecode.com

unread,
Mar 31, 2015, 11:03:42 AM3/31/15
to chromi...@chromium.org

Comment #12 on issue 139105 by sanderde...@gmail.com: incorrect mime-type
for csv-files
https://code.google.com/p/chromium/issues/detail?id=139105

FWIW, Chrome 41 still sends application/vnd.ms-excel

Attachments:
chrome 41.png 15.9 KB

chro...@googlecode.com

unread,
Jun 24, 2015, 9:59:54 AM6/24/15
to chromi...@chromium.org

Comment #13 on issue 139105 by vikas.g...@hobsons.com: incorrect mime-type
for csv-files
https://code.google.com/p/chromium/issues/detail?id=139105

Did anyone found a resolution to this? I am having the same issue.

chro...@googlecode.com

unread,
Jul 6, 2015, 1:50:56 PM7/6/15
to chromi...@chromium.org

Comment #14 on issue 139105 by cgr...@gmail.com: incorrect mime-type for
csv-files
https://code.google.com/p/chromium/issues/detail?id=139105

It is possible to work around this by editing
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.csv\Content Type] and changing it to
text/csv

chro...@googlecode.com

unread,
Jul 9, 2015, 3:44:57 PM7/9/15
to chromi...@chromium.org

Comment #15 on issue 139105 by bmcqu...@chromium.org: incorrect mime-type
for csv-files
https://code.google.com/p/chromium/issues/detail?id=139105

Thanks cgrady! Sounds like Chrome is pulling the mime type from the
registry.

cgrady and others who are encountering this issue, what mime types do IE
and Firefox send in this case?

chro...@googlecode.com

unread,
Aug 11, 2015, 1:54:45 AM8/11/15
to chromi...@chromium.org

Comment #16 on issue 139105 by 0allen....@gmail.com: incorrect mime-type
for csv-files
https://code.google.com/p/chromium/issues/detail?id=139105

IE, Firefox and Chrome all upload as Content-Type: application/vnd.ms-excel
Reply all
Reply to author
Forward
0 new messages