Jump to content

Create Multi-Upload from single upload, please help?


inwa

Recommended Posts

function upload() {

global $full_server,$show_files;

 

$key=$_FILES['image']['tmp_name'];

$name=$_FILES['image']['name'];

 

$album=str_replace(".","",$_POST['album']);

 

If(in_array(file_ext($name),$show_files)) {

If(!file_exists($full_server.$album.$name)) {

If(!move_uploaded_file($key,$full_server.$album.$name)) {

return False;

} Else {

return True;

}

 

}

}

return False;

}

 

i use this script to upload image files, but i wanto make it MULTI upload, for example, browse all the files and then click to upload them all, how can i do that?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.