无法将上传的文件移至wp

编程入门 行业动态 更新时间:2024-10-24 10:14:43
本文介绍了无法将上传的文件移至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.

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

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

chmod 755 uploads

更多推荐

无法将上传的文件移至wp

本文发布于:2023-11-02 08:11:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1551850.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:移至   上传   文件   wp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!