【发布时间】:2016-10-08 10:29:59
【问题描述】:
我有一个托管在 Plesk(Godaddy 的 Windows 托管服务器)上的自定义 PHP 网站
当我提交表单时,所有值都会更新,但图像不会更新。这是页面上显示的错误
PHP Warning: move_uploaded_file(../../../uploads/channels/3.jpg): failed to open stream:
Permission denied in G:\PleskVhosts\dramatainment.com\httpdocs\dashboard\admin\actions\update_queries.php on line 50
PHP Warning: move_uploaded_file(): Unable to move 'C:\Windows\Temp\php5E2E.tmp' to '../../../uploads/channels/3.jpg' in G:\PleskVhosts\dramatainment.com\httpdocs\dashboard\admin\actions\update_queries.php on line 50
我正在使用从 w3schools.com 获得的代码,这里是该脚本的链接 http://www.w3schools.com/php/php_file_upload.asp
任何帮助将不胜感激。
【问题讨论】:
-
您似乎正在尝试写入某个位置,但当前用户不允许您写入。
-
是的,您必须为文件上传文件夹授予 755 权限
-
我该怎么做?你能告诉我吗
-
这是我单击更改权限链接时收到的错误内部错误:filemng failed: Unable to get the object (G:\PleskVhosts\dramatainment.com\uploads) 安全信息:(2 ) 该系统找不到指定的文件。在执行 "C:\Program Files (x86)\Parallels\Plesk\admin\bin\filemng.exe" UmerAtiq --permissions --list-common "--file=G:\PleskVhosts\dramatainment.com\uploads" " --accounts=tmpCF93.tmp"(RunTime::RunAsUser::run 第 221 行) (错误代码 1)
标签: php html forms file-upload image-uploading