mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
FIX: Ensure lightbox image download has correct content disposition in S3 (#7845)
This commit is contained in:
parent
e9bb13c630
commit
03805e5a76
4 changed files with 40 additions and 5 deletions
|
@ -104,7 +104,7 @@ class UploadsController < ApplicationController
|
|||
if Discourse.store.internal?
|
||||
send_file_local_upload(upload)
|
||||
else
|
||||
redirect_to Discourse.store.url_for(upload)
|
||||
redirect_to Discourse.store.url_for(upload, force_download: params[:dl] == "1")
|
||||
end
|
||||
else
|
||||
render_404
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue