Closed Bug 725201 Opened 14 years ago Closed 14 years ago

download from data scheme url should be attach extension for download file name

Categories

(Firefox :: Untriaged, defect)

10 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 475008

People

(Reporter: sugilog, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0) Gecko/20100101 Firefox/10.0 Build ID: 20120129021758 Steps to reproduce: I downloaded csv file from <a> link with data scheme url. Actual results: I downloaded csv file from <a> link with data scheme url. <a href="data:text/csv;base64,(Base64 encoded csv data)">donwload</a> then its file name become (random string).part (like ) Another browser, I checked the Google Chrome, will be attach .csv extension. ( may be it come from mimetype ) Expected results: Browser should attach extension to file name.
Can you please attach a testcase ?
(In reply to Matthias Versen (Matti) from comment #1) > Can you please attach a testcase ? Yes. Sorry I took so long. Testcase is here. ---- <html> <head> <title>TestDataScheme</title> </head> <body> <a href=" data:text/csv;base64,dGVzdCwxMjM0LDIwMTItMDItMTAKYmFyLDU2NzgsMjAxMi0wMi0wOQpiYXos OTAxMiwyMDExLTAxLTAxCg== ">download link</a> </body> </html> ---- My test result. Firefox (Mac, ver 10.0) => with extension ( .part ) FIrefox (Win, ver 3.6.26) => with extension ( .part ) Google Chrome (Mac, ver 18) => with extension ( .csv ) Google Chrome (Win, ver 18) => without extension
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: