Page MenuHomePhabricator

Create /download alias for upload.wikimedia.org
Closed, ResolvedPublic

Description

I request to add an alias to upload.wikimedia.org that triggers the addition of the following header:

'Content-Disposition: attachment; filename="yourname.file"'

This would enable the usage of a "Download this file" option that bypasses your browser window, and immediately going to your browser's "download manager".

So for the file:
http://upload.wikimedia.org/wikipedia/commons/5/58/Polish_Army_Kolobrzeg_077.JPG

There could be the redirects:
http://download.wikimedia.org/wikipedia/commons/5/58/Polish_Army_Kolobrzeg_077.JPG or alternatively http://upload.wikimedia.org/download/wikipedia/commons/5/58/Polish_Army_Kolobrzeg_077.JPG


Version: unspecified
Severity: enhancement

Details

Reference
bz25695

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:17 PM
bzimport set Reference to bz25695.
bzimport added a subscriber: Unknown Object (MLST).

jeluf wrote:

You could simply use the "save link as" feature that every browser provides.

Well you COULD, but that doesn't make it user friendly.

See also bug #26956

I really think we should implement this in some way.

  • Bug 26956 has been marked as a duplicate of this bug. ***

jeluf wrote:

Adding more and more buttons doesn't improve user friendliness, either.

This is now possible by appending ?download to the URL (could be something like ?download=1 too if you don't like valueless URL parameters).

The relevant changesets (by Gilles):
https://gerrit.wikimedia.org/r/#/c/120617/ (WMF Varnish)
https://gerrit.wikimedia.org/r/#/c/120614/ (Vagrant Apache)
https://gerrit.wikimedia.org/r/#/c/120703/ (MediaWiki when serving through PHP)