-->
0 Members and 1 Guest are viewing this topic.
<form action="upload.php" method="POST" enctype="multipart/form-data"> <input type="file" name="file" id="file"><br> <input type="submit" name="submit" value="Submit"></form>
<?php if (empty($_FILES["file"]["file"])) { echo "No file was submitted, try again."; }?>
<?php if (empty($_POST["file"]) { echo "No file was submitted, try again."; }?>
http://www.php.net/manual/en/function.is-uploaded-file.phpIs that what you're looking for? is_uploaded_file($_FILES['file']['tmp_name']), in your case.
Quote from: Deep Thought on September 11, 2011, 03:34:11 pmhttp://www.php.net/manual/en/function.is-uploaded-file.phpIs that what you're looking for? is_uploaded_file($_FILES['file']['tmp_name']), in your case.Great, that worked. But that doesn't work in all servers does it? I am thinking it may only work in Linux servers, but I might be wrong. Thanks!
I am saying this because you said "in your case".