Have ?download parameter trigger Content-Disposition: attachment
authorGilles Dubuc <gdubuc@wikimedia.org>
Mon, 24 Mar 2014 23:31:21 +0000 (00:31 +0100)
committerGilles Dubuc <gdubuc@wikimedia.org>
Tue, 25 Mar 2014 10:04:50 +0000 (11:04 +0100)
commit4d9e07056ed0185183d9f80ab3b0353b503edfbe
tree4bbd13a8ba2b3a275c67dffef2031abe576ff291
parent0c78bd25c81d6083d082d621fcfc3c7c1f09b821
Have ?download parameter trigger Content-Disposition: attachment

This parameter triggers Content-Disposition: Attachment which
makes the browser download the image instead of displaying it.

This is needed by Media Viewer to allow users to click a button in
order to download an image at a given resolution or the original.

Change-Id: I470a24a09139ac65588312104995e34d97a89b0f
img_auth.php
includes/filerepo/file/File.php
thumb.php