I was wondering if anyone knows how to check if an image being uploaded with the DataObjectManager/Uploadify modules is of the correct dimensions and only successfully upload it if it is, otherwise reject it and alert the user?
I have a banner image on my page which randomly selects a handful of images from a folder and displays them using the jquery cycle plugin. However, for it to work correctly, the images need to be a specific dimension. It is a photography website so the photos have to be resized in photoshop beforehand as resizing/resampling/cropping the images in the controller or template does not give me the result I want.
I would really appreciate it if anyone in the forums could help me out.
Now this works as I can upload an image with the correct dimensions successfully but uploading a small image returns a blank popup so I assume I'm heading in the right direction..... still lost regarding displaying an error message and closing the popup.