My website submission form e-mails the text fields to me.
An additional field uploads a file to my server.
The form works and produces no errors but the files are not copied to the designated directory.
Form field: <input type="file" name="photo" size="30" />
$tmpname = $_FILES['photo']['name']; //I added this for testing
echo ($tmpname); //this returns empty
$photoname = $_FILES['photo']['name'];
$photoextension = $_FILES['photo']['type'];
echo ($photoname.$photoextension); //added for testing, this works fine
$photourl = "venueuploads/".$photoname.$photoextension;
echo ($photourl); //this works and returns the full file name
$photo = copy ($_FILES['photo']['tmp_name']['type'], $photourl); //this does not work