views:

338

answers:

2

Hi everyone,

I am trying to develop a PHP driven gallery with a form that has at least four file upload boxes, each with its own title and caption. I have been using php.upload.class to process uploaded photos but not sure how I would go about handling each individual upload while preserving its details (title, caption).

Is there a practical way to do this or should I instead upload just the photos and then have the user add titles and captions on the next page? Any help/suggestion would be greatly appreciated.

Thanks!

A: 
Levi Hackwith
Thanks for your quick reply. It's the last part that I am getting kind of stuck on.. I already have each set of fields numbered one through four. Could you elaborate on the loop? Also, I need to pass each file through php.upload.class to resize it and create a thumbnail.
NightMICU
By $_FILES["file1"] I'm guessing you mean $_FILES["file$i"], since that will give you file1, file2 etc...
Joseph Mastey
Yes, sorry about that.
Levi Hackwith
+1  A: 

This is my suggestion, you can use this jquery multiupload file to ease of to multi uploading file plus better interface rather than to organize multi input boxes.

you can use this is image resizer to dynamically resize your picture rather than to create another file, it will cache your picture then some sort of up a little bit perfomance. Just go to the site and only download 1 image.php file. There will be example that you can test and play of.

For the caption, suggest that you will make something like display all file list and multi update at once, sorry i don't really have much time for doing it myself but this is what I will do many times.

Nazmin