phpflashmulti-upload

Multiupload of files using flash uploader and php and saving into mysql database


I want to develop a backend admin solution to save images for a post using some multiupload flash uploader. I mean that kind o f uploader, where when you click on browse and than in the open dialogue box you can choodse mulitple files using CTRL plus LEFT MOUSE CLICK).

I would like to save every new image to the database. With saving I mean, creating a new row for every item(image) in my table called images:

1.id (automatically increasing)
2.file_name
3.user_who_uploaded_that_book

I would like also to limit the number of files that can a user uplaod (e.g. max 20 files) somewhere in the config file.


Solution

  • Personally I'm a fan of Plupload which include a nice set of examples on how to set it up for multiple files upload. It also includes an upload.php script, as example for backend setup.

    HTML4 doesn't support multiple selection of files, so you need to rely on either HTML5 or extension (like flash or silverlight) for that. Plupload supports all of the above, so it should save you some legwork.