Hi Guys,
Very quick one. I'm trying to upload a file and force an extension name on it:
As you can see I have created a variable to do this, but it throws up an error can't move uploaded file.PHP Code:$file_exten = ".wmv";
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], "../../../story_media/video/".$_SERVER['REMOTE_ADDR'].time(), $file_exten)){
However if I have this code without the $file_exten - ie:
It uploads? So any idea why the first statement won't?PHP Code:$file_exten = ".wmv";
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], "../../../story_media/video/".$_SERVER['REMOTE_ADDR'].time())){
Thanks
Chris


Reply With Quote
Bookmarks