diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-04 18:52:26 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-04 18:52:26 +0200 |
commit | e635dac88f0dfcc36a2313c10f860cb6e3a52cfa (patch) | |
tree | e0365bf4145049e2764164da43b8abed0474ff4a /lib/active_file/site/s3_site.rb | |
parent | 9201d73865ae19850b92442dbd8a629e9891e868 (diff) | |
download | rails-e635dac88f0dfcc36a2313c10f860cb6e3a52cfa.tar.gz rails-e635dac88f0dfcc36a2313c10f860cb6e3a52cfa.tar.bz2 rails-e635dac88f0dfcc36a2313c10f860cb6e3a52cfa.zip |
Quote the filename to deal with spaces
Diffstat (limited to 'lib/active_file/site/s3_site.rb')
-rw-r--r-- | lib/active_file/site/s3_site.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_file/site/s3_site.rb b/lib/active_file/site/s3_site.rb index cfd2ddcc9a..25a876c697 100644 --- a/lib/active_file/site/s3_site.rb +++ b/lib/active_file/site/s3_site.rb @@ -31,7 +31,7 @@ class ActiveFile::Site::S3Site < ActiveFile::Site def url(key, expires_in:, disposition:, filename:) object_for(key).presigned_url :get, expires_in: expires_in, - response_content_disposition: "#{disposition}; filename=#{filename}" + response_content_disposition: "#{disposition}; filename=\"#{filename}\"" end def byte_size(key) |