GithubHelp home page GithubHelp logo

picgo-plugin-minio's Introduction

picgo-plugin-minio

适用于MinIO的PicGo上传器

功能

  • 支持上传
  • 支持相册删除功能
  • 如果图床中存在同名文件, 则跳过该文件的上传
  • 支持跳过同名文件功能可配置(2.1.0+)
  • 支持多级目录功能(2.2.0+)
  • 将图片归档到当前日期目录功能(2.2.0+)
  • 同名文件支持 跳过覆盖保留两者 三种操作(2.3.0+)
    • 覆盖 有点小问题:GUI 的相册会同时出现新旧两张一样的图片
    • PicGO 2.3.0 可能提供了相册相关 API,等正式版出来,再看看是否可以解决该问题
  • 自定义域名(2.3.0+)

安装

在插件界面的搜索栏搜索 minio (PicGo 的插件名以 picgo-plugin- 为前缀,所以只需搜前缀后的名字即可)

搜到了插件之后只要点击右下角的安装即可。

使用

  • endPoint 对象存储服务的URL
  • port TCP/IP端口号。可选值,如果是使用HTTP的话,默认值是80;如果使用HTTPS的话,默认值是443。
  • useSSL yes代表使用HTTPS
  • accessKey Access key是唯一标识你的账户的用户ID。
  • secretKey Secret key是你账户的密码。
  • bucket 存储文件的桶。
  • 存放目录 将图片上传指定目录下, 例如 dirdir1/dir2(2.2.0+)
  • 自动归档 yes表示开启,把上传的图片归档到当天日期目录下(2.2.0+)
  • 同名文件 默认: 跳过(2.3.0+)
    • 跳过 检查 minio 中是否存在同名的文件,存在则跳过该文件的上传
    • 覆盖 不进行检查,直接上传
    • 保留两者 检查 minio 中是否存在同名的文件,存在则重命名该文件名再上传(规则:原文件名_repeat_时间戳_随机数.扩展名)
  • 自定义域名 简单的替换 endPoint 的域名(2.3.0+)

Q&A

  • Q: MinIO 无法公开访问?
    • A: 需要设置 Bucket Policy 为 Read OnlyRead and Write(建议设置为 Read Only)
  • Q: PicGo MinIO图床设置界面无法滚动问题
    • A: PicGo 的 bug 在最新版中已修复。可选方案:在插件设置 -> 点击 minio 的小齿轮 -> 配置 uploader - minio 中进行配置

参考

picgo-plugin-minio's People

Contributors

herbertzz avatar chengww5217 avatar suble avatar cute-angelia avatar

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.