hi,
what is the code to upload a folder or multiple files?
i have one that only uploads a single file at a time....
what i want to do is upload a folder or multiple files in one time....
please help me....
upload a folder, not a single file or multiple uploads
Moderator: General Moderators
Re: upload a folder, not a single file or multiple uploads
You can't upload a folder - only files.
For multiple files,
For multiple files,
Code: Select all
<input type="file" name="upload[]">
<input type="file" name="upload[]">
<input type="file" name="upload[]">
ad nauseamCode: Select all
for ($i = 0; isset($_FILES["upload"]["tmp_name"][$i]); $i++) {
$name = $_FILES["upload"]["name"][$i];
$tmp_name = $_FILES["upload"]["tmp_name"][$i];
$error = $_FILES["upload"]["error"][$i];
// do whatever you want
}Re: upload a folder, not a single file or multiple uploads
Actually you can upload a folder--just not in php. It's possible in Java.
Re: upload a folder, not a single file or multiple uploads
...which works by uploading all the files in that folder individually. It's a wrapper, not new functionality.Skara wrote:Actually you can upload a folder--just not in php. It's possible in Java.
Re: upload a folder, not a single file or multiple uploads
Haha, I think the point is how the user interfaces, not how the code actually looks. 
Re: upload a folder, not a single file or multiple uploads
Wanna bet?Skara wrote:Haha, I think the point is how the user interfaces, not how the code actually looks.
Re: upload a folder, not a single file or multiple uploads
if it's possible in java? can I use it or embed it in my php application???
I mean... the codes in my upload is java, but the rest stays PHP...
Is that possible??
I mean... the codes in my upload is java, but the rest stays PHP...
Is that possible??