Closed
Bug 1476758
Opened 7 years ago
Closed 7 years ago
CSV (and some other files) are not downloaded properly when the title has spaces.
Categories
(Firefox :: File Handling, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1440677
People
(Reporter: flames5123, Unassigned)
Details
(Whiteboard: [DUPEME to bug 1440677?])
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Steps to reproduce:
Download a CSV file, from an ASPX page where the response is the file so it will download, and the filename has spaces in it, like "Student Report.csv".
Actual results:
The CSV is saving as "Student" and it's just a raw file. It still recognizes it as a CSV and changing the filename and type after download will still open properly.
This happens every time. However, it does not seem to have a problem with PDFs that have spaces in the name.
Expected results:
It should save as "File Name.csv" regardless of if the FileName has spaces or not.
Comment 1•7 years ago
|
||
Please post an example link.
Component: Untriaged → File Handling
Flags: needinfo?(flames5123)
Whiteboard: [DUPEME to bug 1440677?]
| Reporter | ||
Comment 2•7 years ago
|
||
Here is a link to a page with 3 different downloads
http://testcory.activeschool.net/test/csvdownload.aspx
In the "Content-Disposition" response header, we have: String.Format("attachment;filename={0}", FileName)
This can simply be fixed by using String.Format("attachment;filename=""{0}""", FileName), as the PDF download does.
However, this is still a problem, as Chrome can download it without the quotes surrounding it.
Flags: needinfo?(flames5123)
| Reporter | ||
Comment 3•7 years ago
|
||
This seems to be a duplicate of bug 1440677. Closing this and closing access to the site.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•