I would like to make my uploads to limit the size, and dimensions of user input images.
It's working, however, there is no real prompt other than the image just doesn't upload.
How could I make this alert the user that they failed to pass the test.
Code: Select all
<form name="form1" method="post" action="" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_WIDTH" value="150" />
<input type="hidden" name="MAX_FILE_SIZE" value="55000" />to use that, the image needs to be on the server already (or on A server at least).
How could I determine that the File is too large or wide, and alert the user of which is wrong, if not both.
Thanks