Closed
Bug 1334274
Opened 7 years ago
Closed 7 years ago
Downloading files (from amazon s3) with "space" in its name truncates the file name to first word
Categories
(Toolkit :: Downloads API, defect, P5)
Tracking
()
RESOLVED
DUPLICATE
of bug 1440677
People
(Reporter: mchauras, Unassigned)
Details
Attachments
(3 files)
Hi, We are using s3 to keep our Salesforce file attachments. So, we can upload/download/delete attachments from Salesforce without any issues. However, if there are files with space in its name, then Firefox browser is downloading the file with just first word. e.g. If file name: "My NameIS.docx", then firefox browser will download it as: My.docx This is NOT an issue in Chrome, Opera, etc.. It works fine there. Our file URL format is: http://s3-us-west-2.amazonaws.com/folder1%2F01555689%2FMy+NameIS1484951266700.docx?AWSAccessKeyId=xxxxxxxxxxxx&Expires=xxxxxxx&Signature=xxxxxxxxxxxxx Can you please let us know how can we fix this? Regards, Manoj.
Updated•7 years ago
|
Component: General → Downloads API
Product: Firefox → Toolkit
Comment 1•7 years ago
|
||
Hello Manoj, can you provide a public URL we can test with?
Flags: needinfo?(mchauras)
Hi Paolo, This is a secure/authenticated site, and hence I'm attaching the screenshot of this behavior.
Comment 4•7 years ago
|
||
Without a link to test with, it could be difficult for us to debug the issue, and we may need you to do some debugging instead. I suspect this may be related to the format of the "Content-Disposition" HTTP header. Please try to open the Network panel (Ctrl+Shift+Q), then click to start the download. In the panel, click on the request, find the header "Content-Disposition" on the right, then copy and paste its value here. Thanks!
Flags: needinfo?(mchauras)
Updated•7 years ago
|
Flags: needinfo?(mchauras)
Hi, Sorry for delay in reply. I tried to find the suggested details, but nothing is showing up for "Content-Disposition" (and similar tags). I'm attaching screenshot for your reference.
Comment 7•7 years ago
|
||
Sorry for the very long delay here, I'm mainly working on development and sometimes bugs that are not directly reproducible slip through the cracks. The information we are looking for is in the right hand pane of the network view. In your screenshots, you'll have to remove the filter (the X icon newer where you typed "Content-Disposition") and then select the right network request from the main list. All the headers should be visible in the on the right, and one of them should be "Content-Disposition".
Flags: needinfo?(mchauras)
Updated•7 years ago
|
Flags: needinfo?(mchauras)
Comment 8•7 years ago
|
||
There's little we can do here until we have an example of a Content-Disposition header that we are processing differently than other browsers, assuming this is the actual issue and not some server-side UA sniffing. It may be easier if we had a public URL to test with, I'm closing this report for now.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(mchauras)
Priority: -- → P5
Resolution: --- → INCOMPLETE
Attaching an image showing a response when downloading a file. The header value is: Content-Disposition: attachment;filename=fiddler result - fwuser - 6-35AM.saz With the above header the file is downloaded as 'fiddler' in Firefox. The problem appears to be the syntax / encoding of the filename value in the http header. When adding quotes around the file name (Using Burp suite as an intercepting proxy) the filename becomes 'fiddler result - fwuser - 6-35AM.saz' in the file save / download dialog box from Firefox. I believe the solution should be to use correct/syntax in the http response header. Relevant info about the Content-Disposition header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
You need to log in
before you can comment on or make changes to this bug.
Description
•