PHP photo gallery with multiple upload formats

I am trying to create a PHP driven gallery with a form that contains at least four file upload fields, each with its own title and signature. I am using php.upload.class to handle uploaded photos, but I don’t know how I will handle each individual upload keeping its details (title, caption).

Is there a practical way to do this, or should I only upload photos instead and then add titles and titles to them on the next page? Any help / suggestion would be appreciated.

Thanks!

+2


a source to share


2 answers


This is my suggestion, you can use this jupery multiupload file to make multi-user file upload easier plus a better interface rather than organizing multiple input fields.

you can use this image resizer to dynamically resize the image and not create another file, it will cache your image, slightly up. Just go to the site and only upload 1 image.php file. There will be an example that you can test and reproduce.



Under the heading, let's say you do something like display all file lists and multiple updates at once, sorry I don't really have much time to do this, but this is something I will be doing a lot of times.

+1


a source


Here's a simple breakdown of what I'll be doing:

  • You have multiple files (four in this case), each with its own unique name (file1, file2, etc.).
  • There are similar text boxes for titles and titles
  • When processing files, I would do something like this:
    • Upload file 1
    • Save Header 1
    • save heading 1

I would do it inside a for loop, starting at 1 and going to the end of the $ _FILES array



UPDATE 1  

for($i = 0; $i <= $num_files; $i++) {
  $file = $_FILES["file1"];
  move_uploaded_file($file, $file_destination)
  // store caption and title code here
}
?>

      

Something like that. I don't know anything about the class you are using, so I cannot help you.

0


a source







All Articles