Skip to content
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

Merged
merged 4 commits into from
Feb 13, 2021

Conversation

ZuevEvgenii
Copy link
Contributor

@ZuevEvgenii ZuevEvgenii commented Jul 24, 2020

Set right Content-Type when copy files from tmp/ directory.

Resolve #2487
Resolve #2484
Resolve #2504

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
Copy link
Contributor

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, merged

@begotten63
Copy link

We are looking forward to this fix. Any thoughts when this can be merged into the master?

@mshibuya mshibuya merged commit 459dfbe into carrierwaveuploader:master Feb 13, 2021
@mshibuya
Copy link
Member

Merged in, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants