Table of Contents
回复内容:
Home Backend Development PHP Tutorial wordpress 搭的网站部分用户投稿时“没有权限上传图片”

wordpress 搭的网站部分用户投稿时“没有权限上传图片”

Jun 06, 2016 pm 08:32 PM
php wordpress

我们搭了一个科技博客,是用的 wordpress的模板,平时也有不少用户给我们投稿。
但是,最近开始大规模出现,用户在投稿发表文章时,无法向文章提交图片。
显示的是:
“您无权向该文章附加文件”

1、我们给每个用户开放了投稿权限;
2、并不是所有的用户都不能上传图片,只有部分用户投稿时传不了。而且出现了 同一个账号第一次可以上传图片,之后忽然出现了不能上传图片的情况。
3、用了七牛,但是查了一下报错,是文件上传到服务器报错,这个过程还没有使用到七牛;
服务器的响应{"success":false,"data":{"message":"\u60a8\u65e0\u6743\u5411\u8be5\u6587\u7ae0\u9644\u52a0\u6587\u4ef6\u3002","filename":"20.jpeg"}}

查了一下资料,国内外都有很多用过wordpress的童鞋遇到这个问题,真的查了好久也解决不了啊 。。累觉不爱,求大牛帮忙。

在线等。

回复内容:

我们搭了一个科技博客,是用的 wordpress的模板,平时也有不少用户给我们投稿。
但是,最近开始大规模出现,用户在投稿发表文章时,无法向文章提交图片。
显示的是:
“您无权向该文章附加文件”

1、我们给每个用户开放了投稿权限;
2、并不是所有的用户都不能上传图片,只有部分用户投稿时传不了。而且出现了 同一个账号第一次可以上传图片,之后忽然出现了不能上传图片的情况。
3、用了七牛,但是查了一下报错,是文件上传到服务器报错,这个过程还没有使用到七牛;
服务器的响应{"success":false,"data":{"message":"\u60a8\u65e0\u6743\u5411\u8be5\u6587\u7ae0\u9644\u52a0\u6587\u4ef6\u3002","filename":"20.jpeg"}}

查了一下资料,国内外都有很多用过wordpress的童鞋遇到这个问题,真的查了好久也解决不了啊 。。累觉不爱,求大牛帮忙。

在线等。

可能是Linux上传目录权限的问题,这些目录都是自动生成的,要在wp_config.php里设置目录权限为777

查下文件夹权限,可以做下判断,不行九直接给755

文件目录权限改777

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

CakePHP Project Configuration CakePHP Project Configuration Sep 10, 2024 pm 05:25 PM

CakePHP Project Configuration

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

CakePHP Date and Time

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

CakePHP File upload

CakePHP Routing CakePHP Routing Sep 10, 2024 pm 05:25 PM

CakePHP Routing

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

Discuss CakePHP

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

How To Set Up Visual Studio Code (VS Code) for PHP Development

CakePHP Quick Guide CakePHP Quick Guide Sep 10, 2024 pm 05:27 PM

CakePHP Quick Guide

See all articles