Closed Bug 1223524 Opened 9 years ago Closed 7 years ago

[Browser][Aries][Flame] The Browser adds extra file extensions to downloaded files

Categories

(Firefox OS Graveyard :: Gaia::System::Download, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mbryant, Unassigned)

Details

Attachments

(1 file)

Images and videos downloaded with the browser application wind up having extra file extensions added to the end of the file name. I've attached a screenshot of my downloads folder on Aries. For the webm and mp4 files the extra extension causes the files to be unable to be opened on the phone. Examples include: .jpg.jpeg .webm.html .mp4.html Images and videos were downloaded from different sites. In this case I got them from imgur.com, apod.nasa.gov, and interfacelift.com STR: 1) Use the browser to find images 2) Longpress the image and save it 3) Navigate to the Downloads section of the Settings menu and look at the files 4) Files will have the extra extensions listed. Aries Build Information Build ID 20151030120435 Gaia Revision 91cac94948094cfdcd00cba5c6483e27e80cb3b0 Gaia Date 2015-10-28 20:32:15 Gecko Revision https://hg.mozilla.org/mozilla-central/rev/c2534acb485963331d67bbc5c07f0d862ed56bf5 Gecko Version 45.0a1 Device Name aries Firmware(Release) 4.4.2 Firmware(Incremental) eng.worker.20150619.224059 Firmware Date Fri Jun 19 22:41:08 UTC 2015 Bootloader s1 Flame Build Information Build ID 20151110030237 Gaia Revision c0482775b1526add626b170dd53a72d10bcaf07c Gaia Date 2015-11-10 02:25:52 Gecko Revision https://hg.mozilla.org/mozilla-central/rev/cc473fe5dc512c450634506f68cbacfb40a06a23 Gecko Version 45.0a1 Device Name flame Firmware(Release) 4.4.2 Firmware(Incremental) 65 Firmware Date Mon Dec 15 18:51:29 CST 2014 Bootloader L1TC000118D0
Component: Gaia::Browser → Gaia::System::Download
Aus, is this expected?
Flags: needinfo?(aus)
To some degree. What is happening is that the server isn't serving up the content with the correct mime-type. What we then do is lookup the correct file extension, the first one that we find in the list of known file extensions for the mime type the server sent, and append it to the filename as we're downloading.
Flags: needinfo?(aus)
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: