Open
Bug 1424502
Opened 6 years ago
Updated 2 years ago
Screenshot Tool and downloads.download() lose filename extension on renaming a file
Categories
(Toolkit :: Downloads API, defect, P3)
Tracking
()
NEW
People
(Reporter: unfry-bg, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 Build ID: 20171123161455 Steps to reproduce: 1. Check 'Always ask you where to save files' in Firefox preferences. 2. Take a screenshot with Firefox's Screenshot Tool. Click arrow button to save the screenshot. 3. Rename the screenshot and save it. All the extensions which use downloads.download({ saveAs: true }) share this behavior. Images will lose a filename extension if you rename them before saving. Actual results: Image (screenshot) loses its filename extension. Expected results: Image (screenshot) should keep its filename extension.
Comment 1•6 years ago
|
||
Does this happen also if file extensions are hidden in Windows Explorer? Can you post a screenshot of the file picker dialog before and after the rename?
Flags: needinfo?(unfry-bg)
(In reply to :Paolo Amadini from comment #1) > Does this happen also if file extensions are hidden in Windows Explorer? > > Can you post a screenshot of the file picker dialog before and after the > rename? Here is demo GIF (8Mb): http://armarium.org/image/XL8
Flags: needinfo?(unfry-bg)
Comment 3•6 years ago
|
||
Thank you, it looks like we're not specifying a default extension for the file picker in that case. My guess is that this won't happen if file extensions are hidden in Windows Explorer, so it should mitigate the issue somewhat. We should still look into this at some point.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Comment 4•6 years ago
|
||
Bug 1396280 would fix this.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•