\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="
Password Required for File Upload
Enter Password:
\n"; $password_form.="\n"; $password_form.="\n"; $password_form.="
\n"; $password_form.="\n"; } } // If Password // Dont allow submit if $password_form has been populated If(($_POST['submit']==true) AND ($password_form=="")) { //Tally the size of all the files uploaded, check if it's over the ammount. If(array_sum($_FILES['file']['size']) > $max_combined_size*1024) { $error.="FAILED: All Files REASON: Combined file size is to large.
"; // Loop though, verify and upload files. } Else { // Loop through all the files. For($i=0; $i <= $file_uploads-1; $i++) { // If a file actually exists in this key If($_FILES['file']['name'][$i]) { //Get the file extension $file_ext[$i]=get_ext($_FILES['file']['name'][$i]); // Randomize file names If($random_name){ $file_name[$i]=time()+rand(0,100000); } Else { $file_name[$i]=cln_file_name($_FILES['file']['name'][$i]); } // Check for blank file name If(str_replace(" ", "", $file_name[$i])=="") { $error.= "FAILED: ".$_FILES['file']['name'][$i]." REASON: Blank file name detected.
"; //Check if the file type uploaded is a valid file type. } ElseIf(!in_array($file_ext[$i], $allow_types)) { $error.= "FAILED: ".$_FILES['file']['name'][$i]." REASON: Invalide file type.
"; //Check the size of each file } Elseif($_FILES['file']['size'][$i] > ($max_file_size*1024)) { $error.= "FAILED: ".$_FILES['file']['name'][$i]." REASON: File to large.
"; // Check if the file already exists on the server.. } Elseif(file_exists($folder.$file_name[$i].".".$file_ext[$i])) { $error.= "FAILED: ".$_FILES['file']['name'][$i]." REASON: File already exists.
"; } Else { If(move_uploaded_file($_FILES['file']['tmp_name'][$i],$folder.$file_name[$i].".".$file_ext[$i])) { $success.="SUCCESS: ".$_FILES['file']['name'][$i]."
"; $success.="URL: ".$full_url.$file_name[$i].".".$file_ext[$i]."

"; } Else { $error.="FAILED: ".$_FILES['file']['name'][$i]." REASON: General upload failure.
"; } } } // If Files } // For } // Else Total Size If(($error=="") AND ($success=="")) { $error.="FAILED: No files selected
"; } $display_message=$success.$error; } // $_POST AND !$password_form /* //================================================================================ * Start the form layout //================================================================================ :- Please know what your doing before editing below. Sorry for the stop and start php.. people requested that I use only html for the form.. */ ?> - Powered By phUploader


Allowed Types:
Max size per file: 10GB.
Max size for all files combined:10GB.
Select File: