Image Upload Script 29.10.08
I have an ecommerce site and create and upload 10 images per item. There are 5 large images and 5 thumbnails. If the product name is a109, then the images would follow these constraints...
1. a109.jpg, 250x250, main photo
2. a109sm.jpg, 120x120, small version of 1.
3. a109-1-lg, 600x600, large photo
4. a109-1-sm, 110x110, small version of 3.
5. a109-2-lg, 600x600, large photo
6. a109-2-sm, 110x110, small version of 5.
7. a109-3-lg, 600x600, large photo
8. a109-3-sm, 110x110, small version of 7.
9. a109-4-lg, 600x600, large photo
10. a109-5-sm, 110x110, small version of 9.
Currently, I create and upload all of these files manually. What I'd like is a script that would perform most of this for me. I'd like to click a browse button that would allow me to chose a directory on my hard drive. The directory would be the item name. In that directory, there will be file 1, 3, 5, 7, and 9.
Example:
\a109
1.jpg
2.jpg
3.jpg
4.jpg
5.jpg
I'd like those files to be uploaded to an images directory on my website, and then the small images to be generated and uploaded also. As the files are uploaded and created, I'd like to see the progress on the screen. If a file is missing, I'd like to be notified, but the rest of the files uploaded. When complete, I'd like to see thumbnails of each displayed. Once complete, the script will reset for another set of files.
ASP Upload and ASP JPEG are installed on my server. I would like the code well commented and a list of constant variables, such as paths, directories, and anything else pertinent that might need to be changed put at the top of the script and commented. I may wish to change image sizes in the future, so the image sizes should be among these constants. Also, the file names for 1, 3, 5, 7, and 9. They may be initially set as 1.jpg, 2.jpg, 3.jpg, 4.jpg, 5.jpg.
I will not allow access to my website. You will have to show me the working script on your test server. Once complete, I'll send the payment. With this arrangement, I don't see the need for escrow. Once you receive payment, you will send me the files and I'll install them. If there are any problems, you will help me to resolve them. I'll leave feedback once it is working on my server.