batch files upload

Reply

Join Date: May 2008
Posts: 74
Reputation: servis is an unknown quantity at this point 
Solved Threads: 0
servis servis is offline Offline
Junior Poster in Training

batch files upload

 
0
  #1
Aug 22nd, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,081
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: batch files upload

 
0
  #2
Aug 23rd, 2008
Originally Posted by servis View Post
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
In order to upload multiple files, you need multiple file upload fields.
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!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC