Could not open stream: is the directory in

I get the following warnings when I try to move the downloaded file from the temp folder to the desired one using php

Warning: move_uploaded_file (test /) [function.move-uploaded-file]: could not open the stream: is the directory in /home/..../filename.php on line 69

Warning: move_uploaded_file () [function.move-uploaded-file]: Cannot move '/ tmp / phpKrCpQw' to 'test /' in /home/..../filename.php on line 69

followed by lines nos 67 and 69, which give an error:

$destination = "test/". $name;

$answer = move_uploaded_file($_FILES['user_file']['tmp_name'],$destination);
+5
source share
2 answers

Your name seems to be null

$destination = "test/". $name;

echo you will name and see what is there.

+12
source

For me it was a file.

, php.ini, , upload_max_filesize post_max_size.

, , Laravel js.

0

All Articles