Multiple file upload with title and caption for each file

See all posts Reply

Multiple file upload with title and caption for each file new!
by nightmicu, 14 years ago
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 class.upload.php to process individual uploaded photos but not sure how I would go about handling multiple uploads while preserving each file's details (title, caption).

Also, I tried the exact example on this site for handling multiple files and I am getting the following error: Warning: Invalid argument supplied for foreach()

To further complicate matters, I also need to insert each entry - including filename, title, and caption - into its own MySQL row. I know how to accomplish this but I'm kind of stumped on how to go about using class.upload.php to rename each of the files and insert each file's name into my SQL.

Thanks!Reply
Re: Multiple file upload with title and caption for each file new!
by nightmicu, 14 years ago
An update- figured out that part of the problem was the fact that my files were too large, that was causing the foreach() error. Any suggestions for the rest?Reply
Re: Multiple file upload with title and caption for each file new!
by colin, 14 years ago
I cannot help for the problem regarding the filename, title and caption: this is basic PHP and MySQL, and is done out of the class.

Regarding the multiple uploads, check out this this threadReply