-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Mime::Type extension order changed (.jpg) #71
Comments
This has two parts to it:
|
Yes. Apparently many packages relying on mime-types assumed Tell me when you implement a reliable way to select the preferred extension and I'll make a PR for Paperclip. |
So, I finally got to looking at this. It was a deliberate change in 2.0 (mime/type.rb:224)…and I think it was the right change to make, but I know that this is a problem. Let me think about how to do this a bit further. I’ve extracted the extension list from 1.25.1 so that I can at least figure out how to put the data in correctly once I’ve got the code figured out. |
Thanks! |
De nada. I may re-sort in 3.0, but by that time I hope to have a better idea of how this should work moving forward. |
Hello,
The following code used to return jpg but now returns jpe since a recent upgrade (the offending commit is 60f478c#diff-a391e22c04309238b0bd982369bcfa4fR103)
This is a problem because of https://github.com/thoughtbot/paperclip/blob/master/lib/paperclip/interpolations.rb#L119-122 which now stores jpegs with a .jpe extension.
I think the library should provide a way to provide a "prefered" extension for a content-type.
The text was updated successfully, but these errors were encountered: