-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CarrierWave::Storage::Fog#copy_to with Content-Type header #2503
Conversation
lib/carrierwave/storage/fog.rb
Outdated
connection.copy_object(@uploader.fog_directory, file.key, @uploader.fog_directory, new_path, acl_header) | ||
options = {} | ||
options.merge!(acl_header) if acl_header.present? | ||
options['Content-Type'] ||= content_type if content_type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also saw that we're missing @uploader.fog_attributes
. I think we should break this into a separate method? (#2504)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, merged
…anhu/carrierwave into stanhu-sh-add-fog-attributes-copy-to
We are looking forward to this fix. Any thoughts when this can be merged into the master? |
Merged in, thanks! |
Set right Content-Type when copy files from tmp/ directory.
Resolve #2487
Resolve #2484
Resolve #2504