0

上传文件时仍然遇到同样的问题 - 我已经调试但看到以下错误我很难过??

在传递数据和请求将其移动到永久位置之间的某个位置它消失了

Debug: ++ DB QUERY SUCCESSFUL

Passed file detials
array(1) { ["file"]=> array(5) { ["name"]=> string(10) "dblogo.png" ["type"]=> string(9) "image/png" ["tmp_name"]=> string(14) "/tmp/phpy3ZPgA" ["error"]=> int(0) ["size"]=> int(30182) } }
Warning: move_uploaded_file(/images/I8DfTdUehInQGjlp.png): failed to open stream: No such file or directory in /var/www/vhosts/jennys-cupcakes.co.uk/marble/file_upload.php on line 59 Warning: move_uploaded_file(): Unable to move '/tmp/phpy3ZPgA' to '/images/I8DfTdUehInQGjlp.png' in /var/www/vhosts/jennys-cupcakes.co.uk/marble/file_upload.php on line 59

File move results:
Debug: ++ FAILED TO MOVE FILE FROM /tmp/phpy3ZPgA TO /images/I8DfTdUehInQGjlp.png ++
4

1 回答 1

0

看起来您正在尝试移至/images/,这将位于文件系统的根目录,并且可能不存在,或者没有写入权限。如果您尝试保存到与images/脚本位于同一位置的文件夹,请/从图像路径的开头删除第一个。

于 2013-11-03T23:29:35.167 回答