500000000) { echo "Sorry, your file is too large :" . $_FILES["fileToUpload"]["size"]; $uploadOk = 0; } // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; } else { // Try to upload the file if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) { // Redirect to index.html header("Location: index.sh?action=filemanagement"); exit; } else { echo "Sorry, there was an error uploading your file."; } } #phpinfo(); ?>