I am getting the following warnings on trying on move an uploaded file from the temp folder to the desired one using php
Warning: move_uploaded_file(test/) [function.move-uploaded-file]: failed to open stream: Is a directory in /home/…./filename.php on line 69
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpKrCpQw' to 'test/' in /home/…./filename.php on line 69
following are line nos 67 and 69 that are giving the error :
$destination = "test/". $name;
$answer = move_uploaded_file($_FILES['user_file']['tmp_name'],$destination);
Best Answer
It seems like your name is null
echo you name and see what is coimg there.