Hi, I am trying to upload a file to a folder which is on the same level in the directory hierarchy.
The PhotoUpload.php reads :
<form name="myform" method="POST" action="PhotoUploadResp.php" ENCTYPE="multipart/form-data" onSubmit="return ValidateForm()">
<input type="file" name="Photo" size="20" >
<input type="submit">
</form>
The PhtoUploadResp.php reads
if (copy ($Photo, "../MemberPhoto/" . $Photo)):
echo "Photo Uploaded";
else:
echo "Photo Uploading fails.";
endif;
These two files are in a folder by name "present" and the folder "MemberPhoto" is at the same level in the directory hierarchy.
But when trying to upload a file i get follwoing warning.
Warning: Unable to create 'http://www.mysite.co.uk/MemberPhoto//tmp/phpQSJ5Dn': No such file or directory in /usr/local/customer/virtualfp/www.mysite.co.uk/present/PhotoUploadResp.php on line 31
I am unable to locate the problem.
Tnx in advance,
Raghu