Dear all,
I’ve a form using the possibility to upload a picture.
Is there a way to check size of it (width and heigh in pixels) and refuse it if not in that range (<=) ?
Any suggestion will be very appreciated
Bye
Giovannino
Dear all,
I’ve a form using the possibility to upload a picture.
Is there a way to check size of it (width and heigh in pixels) and refuse it if not in that range (<=) ?
Any suggestion will be very appreciated
Bye
Giovannino
Re: How check a picture size before to upload it
I think only if you make your own ajax upload function. usually the size is in the first bytes somewhere…
Check out this: http://stackoverflow.com/questions/623172/how-to-get-image-size-height-width-using-javascript
That means that you can write a jscript function that loads the file then checks the size.