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.

10-july-006.JPG is not an image Allowed: PNG/JPG/GIF

July 31, 2010 6:35am

Subscribe [3]
  • #1 / Jul 31, 2010 6:35am

    Sean C. Smith

    3818 posts

    I’ve recently started having a problem uploading images to my family site - most notably with my daughter’s blog. I’ve got her set up to write a blog fine, but when she attempts to upload a picture she get’s this error:

    10-july-006.JPG is not an image Allowed: PNG/JPG/GIF

    The picture is a picture and I’ve uploaded one the full size images (relying on image size to resize on server) that are getting errors here: this picture (4.17mb) this is clearly a picture and has can be viewed on every image editing program I’ve tried. Not sure why it’s not uploading to my daughters site though.

  • #2 / Aug 01, 2010 2:34pm

    Greg Salt

    3988 posts

    Hi Sean,

    If your daughter is not a Super Admin and you turn off “Apply XSS Filtering to uploaded files?” at Admin > System Preferences > Security and Session Preferences can the image then be uploaded? If she is a Super Admin, is her site on the same server with the same setup as your site (where you can upload the image successfully)?

    Cheers

    Greg

  • #3 / Aug 01, 2010 8:16pm

    Sean C. Smith

    3818 posts

    Greg,

    I turned off xss filtering and am unable to upload images. it appears that myself as super admin am also not able to upload images.

  • #4 / Aug 02, 2010 2:23am

    John Henry Donovan

    12339 posts

    Sean,

    What version and build of EE are you using?
    Are you using any extensions?

    I am asking about extensions as the error is not an EE error

  • #5 / Aug 02, 2010 2:45am

    Sean C. Smith

    3818 posts

    could be an ngen field type error. - I updated to the latest version just before this started as well.

  • #6 / Aug 02, 2010 2:58am

    John Henry Donovan

    12339 posts

    Sean,

    Hmm I thought it may be but I don’t see that error when browsing the extension files either.
    Does the error appear like a typical EE error or a server error?
    What are you using to resize images, GD or ImageMagick?

    Out of curiosity if you renamed your image to have a lower-case .JPG does it work?

  • #7 / Aug 02, 2010 3:05am

    Sean C. Smith

    3818 posts

    John,

    I’m using gd 2 and changing the file extension to lowercase allowed me to upload, though it’s still not displaying on the front end - wasn’t a problem before upgrading this extension. I’m not fairly certain that it’s ngen file field causing the problem.

    Sean

  • #8 / Aug 02, 2010 3:14am

    John Henry Donovan

    12339 posts

    Sean,

    Did the error appear like a typical EE error or a server error?

    though it’s still not displaying on the front end

    What does the relevant part of your template look like?

  • #9 / Aug 02, 2010 3:25am

    Sean C. Smith

    3818 posts

    John,

    I’ve attached a screenshot of the error.

    My template code is below - the bottom three lines are temporarily inserted for simplicity - result none of the main code is working (though it did before) and the last three lines is being output unprocess with curly braces intact:

    {exp:lg_replace:haystack needles="{page-photos}photo_{row_count}|{/page-photos}"}
                {page-photos}    
                    {exp:lg_replace:replacement needle="photo_{row_count}"}
                        {exp:imgsizer:size src="{page-photos}" width="520"}
                            {sized}
                            {if image_caption !=""}{image_caption}{/if}
                        {/exp:imgsizer:size}
                    {/exp:lg_replace:replacement}
                {/page-photos}
                {entry}
    {/exp:lg_replace:haystack}
    {/exp:weblog:entries}
    
    
    {page-photos}
    {picture-upload}
    {/page-photos}
  • #10 / Aug 02, 2010 3:37am

    John Henry Donovan

    12339 posts

    Sean,

    That error is clearly an ngen extensions error so the case issue of the file extension you will have to look to them for support.

    You have quite a lot going on it that template.
    One thing I do see is that your {picture-upload} does not appear here

    {exp:imgsizer:size src="{page-photos}" width="520"}

    Shouldn’t that be

    {exp:imgsizer:size src="{picture-upload}" width="520"}

    Either way I would suggest reducing this template right down to figure out which portion is causing you an issue.

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

ExpressionEngine News!

#eecms, #events, #releases