still not working. 🙁
if ($_FILES['resume_used'])
{
define ("FILEREPOSITORY", "/uploaded_resumes");
// check the destination filename:
if (is_uploaded_file ($_FILES['resume_used']['tmp_name']) == 1)
{
$resume = $_FILES['resume_used']['name'];
echo FILEREPOSITORY."/".$resume;
$move_file= move_uploaded_file($_FILES['resume_used']['tmp_name'], FILEREPOSITORY.'/'.$_FILES['resume_used']['name']);
if ($resume == 1)
echo "File is valid, and was successfully uploaded.\n";
else echo "didn't work b!\n";
}
echo 'debugging info:';
print_r($_FILES);
mysql_close();
here's the first of the form too:
<div class="cssform">
<form id="myform" enctype="multipart/form-data" class="cssform" method="post" action="#">
<h1 class="cssform"><ul class="cssform">Upload Application</ul></h1>
<p><label for="resume">Resume</label>
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<input type="file" name="resume_used" id="resume" value=""/>
...
</form>
latest output message:
/uploaded_resumes/Send Registration.setup
Warning: move_uploaded_file(/uploaded_resumes/Send Registration.setup) [function.move-uploaded-file]: failed to open stream: No such file or directory in /nunya/apply.php on line 56
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpkakjL8' to '/uploaded_resumes/Send Registration.setup' in /nunya/apply.php on line 56
didn't work b! debugging info:Array ( [resume_used] => Array ( [name] => Send Registration.setup [type] => application/octet-stream [tmp_name] => /tmp/phpkakjL8 [error] => 0 [size] => 784 ) )
thanks for your help so far. learned at least one thing (have to use $FILES instead of $POST for the name)