Closed
Bug 366219
Opened 18 years ago
Closed 18 years ago
Download attachments with their original names when using Save Link As
Categories
(Bugzilla :: Attachments & Requests, defect)
Bugzilla
Attachments & Requests
Tracking
()
RESOLVED
DUPLICATE
of bug 299372
People
(Reporter: jnoreiko, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9
Build Identifier:
When I download an attachment to a bug, I get a file called something like
this:
attachment.cgi?id=78885&action=view
It would be more useful to have the original filename it was uploaded as.
(I'm having this problem with Gnome's bugzilla, originally filed here: http://bugzilla.gnome.org/show_bug.cgi?id=389720)
Reproducible: Always
Comment 1•18 years ago
|
||
I never had such problems. Probably a local issue with GNOME's bugzilla.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Comment 2•18 years ago
|
||
OK, to be more exact, you have to view the attachment first, then right click to save the attachment. It will have the correct name.
Reporter | ||
Comment 3•18 years ago
|
||
Comment on the Gnome bugzilla:
Please report this upstream (bugzilla.mozilla.org, Bugzilla product). It will
actually work if you first click, and then do a save as (e.g. for patches).
However, the browser does not use the servers filename if you do a 'save link
as'. Usually this is solved by faking the URL with something like:
attachment.cgi?id=78885/the.attachment.name.patch
But that is for upstream to fix (IIRC this depends on an Apache feature being
enabled).
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
Comment 4•18 years ago
|
||
The problem is due to using Save Link As and Firefox 1.5+ (bug 299372), wget, or curl. I think we should investigate adding the filename after the link. E.g. attachment.cgi?id=12345/some_file_name.ext.
But the filename should still be 'command line compatible'. E.g. only allow a safe subset. This for easy copy/pasting in a terminal.
OS: Windows 2000 → All
Hardware: PC → All
Summary: download attachments with their original names → Download attachments with their original names when using Save Link As
Comment 5•18 years ago
|
||
(In reply to comment #4)
> or curl. I think we should investigate adding the filename after the link. E.g.
> attachment.cgi?id=12345/some_file_name.ext.
No, this doesn't work. Now the ID is "12345/some_file_name.ext", which is invalid. And we are not going to force admins to enable some feature in Apache to have it running correctly, probably because there could be some security implications. And we have no idea whether this is supported by all web servers anyway.
Updated•18 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•