ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

“.jpeg” files do not upload correctly to image file uploaders

January 27, 2011 10:07pm

Subscribe [3]
  • #1 / Jan 27, 2011 10:07pm

    Gavin Anderegg

    15 posts

    A while back, I filed the following bug: https://support.ellislab.com/bugs/detail/15013/—I was told that I should open a support ticket for this bug, so I’m doing this now.

    When I try to upload a file to a “.jpeg” file upload location where “Allowed File Types” is set to “images only”, one of two things happens, the upload either fails or never completes. In the latter case, I just see a spinning indicator, but it never completes—even if the file is ~80k or so. When the upload fails, I either see the error “The filetype you are attempting to upload is not allowed.” or “You did not select a file to upload.”. Does anyone else have this problem?

    - I’m able to upload “.jpg”, “.gif”, and “.png” images without issue
    - I’ve tested with Safari 5.0.3, Chrome 8.0.552.237, Opera 11.01, and Firefox 3.6.13 all using Mac OS X 10.6.6
    - I’ve turned off “Apply XSS Filtering to uploaded files?” under “Admin -> Security and Privacy -> Security and Session Preferences”
    - I’ve tested this on my local server, and on a MediaTemple (gs) shared hosting server

    I’m using EE v2.1.3 build 20101220.

  • #2 / Jan 28, 2011 11:46am

    Ingmar

    29245 posts

    Have you tried with “Allow All File Types”? Make sure there’s an appropriate MIME type in .../system/lib/mimes.php, too.

  • #3 / Jan 28, 2011 2:02pm

    Gavin Anderegg

    15 posts

    Have you tried with “Allow All File Types”?

    “.jpeg” file uploading works when using “Allow All File Types?”, but I was specifically trying to limit the user to uploading images only in that one uploader.

    Make sure there’s an appropriate MIME type in .../system/lib/mimes.php, too.

    I wasn’t able to find a “../system/lib/mimes.php”, but I did see “../system/expressionengine/config/mimes.php”, and it has the following lines:

    'jpg'    =>    array('image/jpeg', 'image/pjpeg'),
    'jpe'    =>    array('image/jpeg', 'image/pjpeg'),
    'jpeg'   =>    array('image/jpeg', 'image/pjpeg'),

    I believe that’s as it should be.

  • #4 / Jan 29, 2011 4:48pm

    Greg Salt

    3988 posts

    Hi Gavin,

    I am able to replicate this behaviour so I’ll confirm that in the bug report.

    Thank you for the report.

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases