无法将上传的文件移至wp-content/uploads [英] The uploaded file could not be moved to wp-content/uploads

查看:1063
本文介绍了无法将上传的文件移至wp-content/uploads的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用WordPress上传图片,但出现此错误:

I am trying to upload pictures in WordPress but I get this error:

上传的文件无法移至wp-content/uploads.

The uploaded file could not be moved to wp-content/uploads.

我正在localhost中运行它,但是找到的答案是将服务器上的文件夹权限更改为777.

I am running it in localhost but the answers I have found are to change the folder permissions to 777 on the server.

我尝试自己制作一个上载文件夹,但这没有用,除了读取和写入外,没有其他选项可以将文件夹权限更改为其他任何内容.

I tried making an uploads folder myself, but it's of no use and there is no option to change the folder permissions to anything except read and write.

我在Mac OS X上使用XAMPP;我是WordPress的新手-如何解决此问题?

I'm using XAMPP on Mac OS X; I'm new to WordPress - how can I fix this?

推荐答案

假设您的wordpress目录由正确的用户拥有",并且如果将权限设置为755,您应该会看到问题已解决.

Provided that your wordpress directory is "owned" by the correct user, you should see your problem resolved if you set the permissions to 755.

登录到服务器,然后cdwp-content,然后运行:

Log on to your server, and cd to wp-content, then run:

chmod 755 uploads

这篇关于无法将上传的文件移至wp-content/uploads的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆