'; } else { echo ''; } echo '\n"; echo '\n"; $fileName = basename($file['name'][$i]); $parts = split('\.',$fileName); $ext = strtolower($parts[count($parts)-1]); if(is_array($accept)) { if(in_array($ext,$accept)) { /** * the file is of a type that is listed in the $accept array * let's accept it and save it to the hard disk if the * save_path is set */ echo ""; if(isset($save_path) && $save_path!="") { move_uploaded_file($file['tmp_name'][$i], $save_path . $name[count($name)-1]); } } else { echo ""; } } else if(is_array($reject)) { /* * we will inspect the file extension and reject the file, * should we find it's extension listed in the $rejects * array. */ if(in_array($ext,$reject)) { echo ""; } else { echo ""; if(isset($save_path) && $save_path!="") { move_uploaded_file($file['tmp_name'][$i], $save_path . $name[count($name)-1]); } } } echo "\n"; } if(! isset($save_path) || $save_path =="") { echo ''; } echo ""; ?>
Files Uploaded
File Name File size Status
' . $file['name'][$i] ."' . $file['size'][$i] ."AcceptedRejectedRejectedAccepted
Files have not been saved, please edit upload.php to match your configuration
Top level folder hint : $userfile_parent

 

Sample PHP Upload handler provided by Rad Inks

 

have you seen our Secure FTP Applet or   our Multimedia Messaging Solution?