| | |
batch files upload
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
•
•
Have a nice day,
i am working on image gallery, i want to create a php script that allow user to select multiple files from any folder of his computer and then upload it to server, just like flickr or orkut, but i have no idea how it can be done.
please anybody help in this regard.
Thanks
The file upload on flickr, orkut would use JavaScript to create the multiple upload files in the upload form.
So as you clicked the "add file" button, JavaScript generated a new <input type="file"> field and appended it to the <form>.
Basically, it is more of a JavaScript question then PHP.
To handle file uploads in PHP see:
http://www.php.net/features.file-upload
If you want upload multiple files and receive them as an Array, then name your files like:
<input type="file" name="files[]" />
see: http://www.php.net/manual/en/faq.htm...aq.html.arrays
This is also in "Example 3" on the PHP file uploads docs. http://www.php.net/features.file-upload
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
Similar Threads
- Final Year Project (Computer Science)
- ThePDSource.com - Website Selling Public Domain Guides, Kits, and Films; Unique Logo (Websites for Sale)
- Working with PHP offline (PHP)
- Uploading entire directories of images using PHP (PHP)
- HJT log, i think there's a lot of malicious on this computer (Viruses, Spyware and other Nasties)
- Just another "Best Offer" Need for Help! (Viruses, Spyware and other Nasties)
- Uploading Folders to Web in OSX.3.7 (OS X)
Other Threads in the PHP Forum
- Previous Thread: Very simple Question
- Next Thread: Please help search query
| Thread Tools | Search this Thread |
.htaccess ajax apache api array autocomplete beginner binary broken cakephp checkbox class cms code cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error errors execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google href htaccess html image include insert integration ip java javasciptvalidation javascript joomla keywords limit link login loop mail matching menu mlm mod_rewrite multiple mysql oop paypal pdf php problem query radio random recursion recursive regex remote script search server sessions shot sms soap source space sql subscription syntax system table tutorial tutorials update upload url validation validator variable video web xml youtube






