When a user uploads a image into the gallery, and enters description, and hits the upload button, the software, uploads the image and than checks to see if the description size is correct, and then if the description if too large it then cancels the upload, but this is wrong, as it does it in this order.
- Uploads the image(s) to the server
- Checks the description
- If description is OK it ends, if it does not it deletes the uploaded image and inform the user.
This is wrong, because the user has to use bandwidth for no reason, and it wastes server bandwidth and processing time.
Can the script be modified so that before the serve even starts the upload of the image to the server, it checks that the description is the right size and not over the limt set in the admincp, and if it is wrong, it allows the user to 'go back' and modify the description?
Better yet, can the script inform the user of the limit to the description or force the textarea box to stop text entry when the charactor limit has been reached.
ie I think it should do the upload in this order:
- Checks to see if the description is within the limit
- If not it stops any further processing of the upload action and informs the user, if it passes the check then...
- It then starts the image file upload.