View Single Post
Old December 12th, 2004, 12:31 PM   #1 (permalink)
Sanjiyan
Member
Verified Customer
 
Join Date: Apr 2004
Posts: 127
Lightbulb [RC1] Upload - Image description checking...

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.
  1. Uploads the image(s) to the server
  2. Checks the description
  3. 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:
  1. Checks to see if the description is within the limit
  2. If not it stops any further processing of the upload action and informs the user, if it passes the check then...
  3. It then starts the image file upload.
Sanjiyan is offline   Reply With Quote