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.

Safecracker problem with alerting when a uploaded image is too big in width or height

September 22, 2011 10:20am

Subscribe [2]
  • #1 / Sep 22, 2011 10:20am

    Martijn La Feber

    11 posts

    Hi there,

    We tried safecracker to give an alert after try to upload something which is bigger than the prefered width or height.
    Strange enough when you give a filesize, you get an alert, but when you give max withc or height it doen’t upload but don’t give any feedback. Is this a bug or are we doing something wrong?

    Thanx in advance.

    Grtz,
    Martijn

    Used EE2 version is 2.2.2 | 20110801

  • #2 / Sep 22, 2011 7:29pm

    Dan Decker

    7338 posts

    Hi Martijn La Feber,

    I had a read through the docs and I don’t think checking for image dimensions is a Safecracker function. You would likely need to employ some javascript to check the image and handle the errors. However, if you would care to share your template code with us, we’d be happy to offer suggestions.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases