Merge pull request #66 from insales/no_cache_s3_refactor_private_uploads

Забыли вызвать чтение у StringIO
This commit is contained in:
Nastia
2022-08-15 17:23:54 +03:00
committed by GitHub

View File

@@ -97,7 +97,7 @@ module Paperclip
return unless synced_to?(self.class.main_store_id)
if self.class.download_by_url
create_tempfile(URI.parse(presigned_url(style)).open)
create_tempfile(URI.parse(presigned_url(style)).open.read)
else
download_from_store(self.class.main_store_id, style_key)
end