Your file was not uploaded.
"; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) { echo "We are now processing your file. You will be redirected shortly.
"; // In a real app, you would redirect to the material preview page, e.g.: // header("Location: material_preview.php?file=" . urlencode(basename( $_FILES["fileToUpload"]["name"])))); } else { echo "