Jump to content

Uploading file


vanyok

Recommended Posts

hey, good morning.I have a simple script that uploads the file but I cannot get it to work.. says that " No such file or directory" even though the folder is there and i have CHMOD set to full rights.This is the form:<form enctype="multipart/form-data" method="post" action="ProfileResults.php"><input type="hidden" name="MAX_FILE_SIZE" value="3000"><input type="file" name="picture" size="30"><input type="submit" name="imageSubmit" value="Upload"></form>and here is the upload php file: if ($picture != "") { $path="/pictures/$picture.jpg"; copy($picture, $path) or die("Couldn't Upload the file!"); } else die("Please go back and select a picture to upload");What's wrong ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...