In an input of the type file, the tmp file is not being generated.
This is the array generated by PHP
Array ( [name] => desin3.jpg [type] => image/jpeg [tmp_name] => C:\xampp\tmp\phpE0D5.tmp [error] => 0 [size] => 30420 )
but the phpE0D5.tmp
file is not created in the xampp\tmp
folder by generating an error in the
move_uploaded_file
error:
Warning (2): move_uploaded_file(): The second argument to copy() function cannot be a directory [APP\Controller\DocumentsController.php, line 184]
Warning (2): move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\xampp\tmp\phpE0D5.tmp' to 'C:\xampp\htdocs\site\app\UploadFiles' [APP\Controller\DocumentsController.php, line 184]