mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Add attachment content-disposition for all non-image files (#10058)
This will make it so the original filename is used when downloading all non-image files, bringing S3Store into line with the to_s3 migration and local storage. Video and audio files will still stream correctly in HTML players as well. See https://meta.discourse.org/t/cannot-download-non-image-media-files-original-filenames-lost-when-uploaded-to-s3/152797 for a lot of extra context.
This commit is contained in:
BIN
spec/fixtures/media/small.mp3
vendored
Normal file
BIN
spec/fixtures/media/small.mp3
vendored
Normal file
Binary file not shown.
BIN
spec/fixtures/media/small.mp4
vendored
Normal file
BIN
spec/fixtures/media/small.mp4
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user