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

"Allowed File Types" Image filenames with uppercase extension won't render #12

Open
wykananda opened this issue Jun 17, 2014 · 2 comments

Comments

@wykananda
Copy link

If an image file is uploaded with a capitalized extension (ie. image.JPG image.PNG), the image will not render (regardless of the casing of the setting in the "Allowed FileTypes" box).

@wykananda wykananda changed the title "Allowed File Types" extension casing issue "Allowed File Types" extension casing Jun 17, 2014
@wykananda wykananda changed the title "Allowed File Types" extension casing "Allowed File Types" Image filenames with uppercase extension won't render Jun 17, 2014
@tvb
Copy link
Contributor

tvb commented Jun 18, 2014

Good find.

@tvb
Copy link
Contributor

tvb commented Nov 12, 2014

There are more problems with uppercase filetypes. IE does not show images with uppercase jpg extensions. (.JPG / .JPEG). Quick fix is updating the database et_attachment filename table:

UPDATE `et_attachment` SET `filename` = REPLACE(`filename`, "JPG", "jpg") WHERE RIGHT(`filename`, 3) = "JPG";

Ideally we should change the filename to lowercase before/when uploading

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

No branches or pull requests

2 participants