I am trying to allow users to upload videos via this form
<form method='POST' name='uploadform' enctype='multipart/form-data' action=''>
Video: <input type='file' name='filename' /><br/>
<input type='submit' name='cmdSubmit' value='Upload' />";
Then with this php script I am trying to move the videos into another folder for storage.
if($_POST['cmdSubmit']){
$filename = basename($_FILES['filename']['name']);
move_uploaded_file($_FILES['filename']['tmp_name'], "videos/" . $filename);
}
The problem I am having is the video's are not being moved to my folder. I have done research on how to do this and have try many error solving methods but nothing is seeming to work so if you have any idea on what my problem is any help is appreciated. The form works perfectly. Thanks....
I have searched google and youtube and can't find any really good articles on this if you know any that would be awesome too.
I tried to do troubleshooting by using this code..
if(move_uploaded_file($_FILES['filename']['tmp_name'], "videos/" . $filename)){
echo "This worked Successfully";
}else{
echo "Error";
}
}
and it did not echo either statement....