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.

Upload Invalid Dimensions

August 24, 2010 8:03am

Subscribe [6]
  • #1 / Aug 24, 2010 8:03am

    CamCentral

    28 posts

    Hi All 😊

    Have built a site for a client, the site has a channel whereby an image for each entry needs to be uploaded. The issue is that my client can’t upload images. Whenever he tries, he gets the error: upload_invalid_dimensions

    I have logged in under my clients username and password, and I am able to upload perfectly with no errors on two different machines.

    He has brought is MacBook into the office to try here under our wireless connection, and he is still getting the same error.

    Has anyone come across this problem before or know of anything I can try to resolve this for him?

    Many thanks in advance.

  • #2 / Aug 24, 2010 5:26pm

    Ingmar

    29245 posts

    What version and build are you using? Any extensions? Also, what size are these images?

  • #3 / Aug 25, 2010 5:24am

    CamCentral

    28 posts

    Hi Ingmar,

    The version is EE v2.1.0. Am using the Freeform extension and the image is small, 24kb and 320x240px.

    EDIT - In addition, I have tried it on 2 machines here and it works, I have got a third party to try from a different machine at a different location and it worked for him. It is only my client who gets the error (and he has tried on two machines with the same error).

  • #4 / Aug 25, 2010 9:14am

    Sue Crocker

    26054 posts

    CamCentral, is the client behind any sort of a firewall? Can he/she try from home?

  • #5 / Aug 25, 2010 10:12am

    CamCentral

    28 posts

    CamCentral, is the client behind any sort of a firewall? Can he/she try from home?

    It wouldn’t be that would it? As my client brought his laptop into the office here and used the same wireless connection I used, and it didn’t work here either.

  • #6 / Aug 25, 2010 10:28am

    Mediakitchen

    261 posts

    Bit of a long shot but has the client tried only on Macs? If so, does the files he is uploading have file extensions e.g .jpg? I recall from my days of working on Macs that there are no file extensions on files. Probably not the issue but I have encountered a problem using the freeform extesion where the files I am uploading are losing their extensions when they have been uploaded. This makes the extension useless to me.

    Good luck with finding a solution! If the client is trying only on Macs perhaps see if he can try on a PC.

  • #7 / Aug 25, 2010 10:31am

    CamCentral

    28 posts

    Hi Media, thanks for replying.

    He is using a mac, but so am I, we have tried the same image with no luck :(

  • #8 / Aug 25, 2010 10:37am

    Mediakitchen

    261 posts

    Hmm ah well.

    I guess you are both trying logged in with the same username and password just in case it is an issue with the particular member doing the upload? i.e When you try it on his Mac, are you logging in as the same member as you are when you successfully upload it on your mac?

  • #9 / Aug 25, 2010 10:38am

    CamCentral

    28 posts

    Yup, making sure I log in under the same user details.

  • #10 / Aug 25, 2010 10:54am

    Mediakitchen

    261 posts

    I have no idea then! Not a caching issue on his Mac as you say he has tried on 2 machines. And I assume you have tried it with a few different images just in case that particular image has some weird corruption. I would be more than happy to test this for you as I do have a Mac Mini here that I bought for Iphone development that sadly has not seen much action. It has the latest Mac OS on it.

  • #11 / Aug 25, 2010 11:00am

    Mediakitchen

    261 posts

    Now this is really unlikely to be related but doing a search on google for that error, I discovered the following:

    // Are the image dimensions within the allowed size?
    // Note: This can fail if the server has an open_basdir restriction.
    if ( ! $CI->upload->is_allowed_dimensions())
    {
       $error_hold[$i] = 'upload_invalid_dimensions';
    }

    Now this means pretty much nothing to me but it does look like there is a potential reason for this test failing. Possibly something to do with the path of the file being uploaded?!!

    Thic code may not be anything related to Expression Engine though

  • #12 / Aug 25, 2010 11:04am

    CamCentral

    28 posts

    Now this is really unlikely to be related but doing a search on google for that error, I discovered the following:

    // Are the image dimensions within the allowed size?
    // Note: This can fail if the server has an open_basdir restriction.
    if ( ! $CI->upload->is_allowed_dimensions())
    {
       $error_hold[$i] = 'upload_invalid_dimensions';
    }

    Now this means pretty much nothing to me but it does look like there is a potential reason for this test failing. Possibly something to do with the path of the file being uploaded?!!

    Thic code may not be anything related to Expression Engine though

    They are, definitely, the dimensions are set to 900x600 and the image is 320x240.  Also the image shouldn’t be the issue as we have tried the same image. Really appreciate your help.

    Not sure if I should give out access to the site as it is a client site in development. Let me have a think about that, I really appreciate your offer and help.

  • #13 / Aug 25, 2010 7:10pm

    Sue Crocker

    26054 posts

    If you take Freeform out of the equation, what happens then?

  • #14 / Aug 26, 2010 7:31am

    CamCentral

    28 posts

    How can I disable Freeform to try without losing the fields and forms I have already created?

    Also, my wife has tried uploading an image (old Mac Powerbook) and got the same error and couldn’t upload. My client has tried on his office PCs, and he could upload an image successfully.

  • #15 / Aug 26, 2010 7:45pm

    Brandon Jones

    5500 posts

    CamCentral, you can disable extensions globally and keep your settings. Let us know if that has any affect.

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

ExpressionEngine News!

#eecms, #events, #releases