I have a simple file upload function, but I can't get it to work!
I keep getting and "Error" when trying to use this!

My html-file:

```
<form enctype='multipart/form-data' action='upload.php'>
<input type='file' name='myfile' />
<input type='submit' value='Upload image' />
</form>

```

and my upload.php file:

```
$target = "upload_folder/"; 
$target = $target . basename( $_FILES['myfile']['name']) ; 
if(move_uploaded_file($_FILES['myfile']['tmp_name'], $target)) 
{
echo "The file was uploaded";
} 
else {
echo "Error";
}

```

..this is one of the first times I use this, so I properly did something stupid..
Any suggestions?