Hey PHP folks,
Can anyone please tell me if multiple file uploading can be done in PHP? For example lf a person has 30 files and wants to upload all at once without having him to select each file and then upload. Working example in Flash: http://www.element-it.com/Examples/Mult ... pload.html but I want to do it in PHP.
P.S. Is uploading a whole folder also possible in PHP?
Thanks!
Multiple file upload using PHP
Moderator: General Moderators
So you are saying that http://www.element-it.com/Examples/Mult ... pload.html can be done in PHP too? In that flash uploader we can select all the files by using mouse or CTRL + SHIFT keys all at once and then upload
Actually php handles only server side of file uploads. All client side is handled by the browser. So, php do not allows to upload several files from the same file html input. Here is what allowed by html/php
Code: Select all
<form action="file-upload.php" method="post" enctype="multipart/form-data">
Send these files:<br />
<input name="userfile[]" type="file" /><br />
<input name="userfile[]" type="file" /><br />
<input type="submit" value="Send files" />
</form>- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA