GithubHelp home page GithubHelp logo

sy-records / upyun-uss-wordpress Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 2.0 740 KB

使用又拍云云存储USS作为附件存储空间的WordPress插件。QQ交流群:887595381

Home Page: https://qq52o.me/2742.html

License: Apache License 2.0

PHP 100.00%
upyun uss wordpress-plugin upyun-uss-wordpress

upyun-uss-wordpress's Introduction

USS Upyun

使用又拍云云存储 USS 作为附件存储空间的 WordPress 插件

Latest Version License website contributors plugin stars plugin installs Deploy to WordPress.org

插件特色

  • 可配置是否上传缩略图和是否保留本地备份
  • 本地删除可同步删除又拍云云存储USS中的文件
  • 支持又拍云云存储USS绑定的个性域名
  • 支持替换数据库中旧的资源链接地址
  • 支持又拍云云存储USS完整地域使用
  • 支持同步历史附件到又拍云云存储USS
  • 支持上传时自动重命名文件(MD5或时间戳+随机数两种方式)
  • 支持设置图片处理

安装

后台安装(推荐使用)

WordPress 后台安装插件页面搜索USS Upyun,点击安装

下载源码

从 GitHub 下载源码,通过 WordPress 后台上传安装,或者直接将源码上传到 WordPress 插件目录wp-content/plugins,然后在后台启用

GitHub 下载节点:https://github.com/sy-records/upyun-uss-wordpress/releases/latest

修改配置

  • 方法一:在 WordPress 插件管理页面有设置按钮,进行设置
  • 方法二:在 WordPress 后台管理左侧导航栏设置又拍云USS设置,点击进入设置页面

插件截图

设置页面

update-wordpress-posts-photos.png

upyun-uss-wordpress's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

upyun-uss-wordpress's Issues

关于图片水印问题

通过编辑器上传的图片可以正常添加水印。
而如果通过其它手段保存网页中的图片到云端,是没有水印的,这个问题在其它云端插件中,是没有的。希望能增强,谢谢!

又怕云插件好像不支持PHP8.1

WordPress6.2版本
PHP版本8.1
使用数据库替换功能时Warning: Undefined variable $old_url in /www/wwwroot/域名/wp-content/plugins/uss-upyun/upyun-uss-wordpress.php on line 466

Warning: Undefined variable $new_url in /www/wwwroot/域名/wp-content/plugins/uss-upyun/upyun-uss-wordpress.php on line 466

Warning: Undefined variable $old_url in /www/wwwroot/域名/wp-content/plugins/uss-upyun/upyun-uss-wordpress.php on line 470

Warning: Undefined variable $new_url in /www/wwwroot/域名/wp-content/plugins/uss-upyun/upyun-uss-wordpress.php on line 470

上传图片被覆盖

使用版本1.2.4
wordpress版本5.8

wordpress 编辑器中粘贴使用截图截取的新图片(包括使用windows自带截图、qq截图)上传时,默认使用的是image.png,并且会覆盖原有图片上传
image
严重时会导致图片丢失

建议增加重命名功能,用uuid重命名或者其他自定义命名规则
还有检测是否已经存在同名文件防止上传覆盖的问题出现

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.