I have an html form that allows the user to browse for a file to upload.
In the cakephp script, I use move_uploaded_file() to upload the file from the temp location to a location on the server.
move_uploaded_file($file['tmp_name'], $url);
However, the file seems to be disappearing before the upload is complete:
move_uploaded_file(/img/recipes/5.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory [APP\app_controller.php, line 97]
move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Windows\Temp\phpF25A.tmp' to '/img/recipes/5.jpg' [APP\app_controller.php, line 97]