Product Option File Upload - Test For Image Dimensions

For the Product Option File Upload, how would I go about modifying the code to test for an uploaded image’s dimensions.

Currently the cart allows one to test for file size.


[*]Max uploading file size - leave this field empty to allow uploading of files of any size or limit the file size (100 is equal to 100 Kb);


[size=4]But I need to check for uploaded dimension. For example minimum upload of 700x500 pixels.[/size]

[size=4]Is this easily doable in [/size][size=4]Cs-cart 3.04.[/size]

[size=4]Thanks for any hints,[/size]


On my tablet so can't verify but check the image update functions for hooks you can use.