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

Fix content type being reset when using file cache storage #2117

Merged
merged 2 commits into from
Feb 23, 2017
Merged

Fix content type being reset when using file cache storage #2117

merged 2 commits into from
Feb 23, 2017

Conversation

dweinand
Copy link
Contributor

@dweinand dweinand commented Feb 8, 2017

There has been a longstanding issue in SanitizedFile#move_to where an existing content type would be lost. This was exacerbated by the changes in #1312, which made the file cache store use move_to all the time.

Prior to this fix, anyone using the file cache store will lose any explicitly set content type. This can be seen in: #1841.

This PR solves the underlying SanitizedFile issue, and adds some specs to ensure the same issue isn't present in the fog storage.

@Tom-Tom
Copy link

Tom-Tom commented Feb 20, 2017

Hi, any news regarding this PR ?
Thx

@mshibuya mshibuya merged commit 6a1445e into carrierwaveuploader:master Feb 23, 2017
@mshibuya
Copy link
Member

Looks good, 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
Development

Successfully merging this pull request may close these issues.

3 participants