当前位置:网站首页>免费在upic中设置OneDrive或Google Drive作为图床
免费在upic中设置OneDrive或Google Drive作为图床
2022-04-23 14:52:00 【未知的生活】
需求
一开始我在upic中使用gitee作为图床源但经常出现上传不上去或已有的连接失效的问题,后来想到利用Office 365家庭版赠送的One Drive提供的1T空间(学生可以免费申请5T空间),完全可以把剩余不用的空间利用起来做为图床。
从 GoogleDrive 和 OneDrive 获取图片直链
首先,存在网盘里文件的直链我们是无法获取的,这里需要使用PoweredBy.Cloud 这一个免费工具,来提供网盘文件的直链(下面我以OneDrive为例)
网站注册
这里首先打开网站PoweredBy.Cloud 点击右上角的Login
这里在Email address中填入你的邮箱地址,并进行人机身份验证,然后点击下方的按钮,登录地址会发送到你的邮箱。
打开你邮箱中的邮件,点击登录地址自动登录到网站,可以看到以下界面,点击add site添加一个网站,这里的Sites(1/3)是因为我已经添加一个了,初始的时候应该是(0/3)。
弹出提示框,这里的Driver Provider填写OneDrive(或者你用的是GoogleDrive),会自动跳转到OneDrive登陆认证界面选择同意。下方的Site Name可以随便填写,但是注意要求不能和已有名称重复。完成后点击ADD,PoweredBy.Cloud 就会在你的网盘里创建一个 http://exampleCSDN.stdcdn.com 的文件夹。
在左侧点击Developer选项卡,然后点击右上角的CREATE ACCESS KEY,随意起个名字,点击确定,然后就可以看到已经成功申请Access Keys,一会将会在uPic中填入Access Key和Secret Access Key,注意保存。
至此,PoweredBy.Cloud 的配置就完成了,下面我们打开uPic进行配置Access Key和Secret Access Key。
uPic配置Access Key和Secret Access Key
这里我使用的是mac版的uPic软件0.21.1版本,下载地址为github release或Gitee release。安装后打开偏好设置,点击上方的图床选项卡,我们来添加OneDrive 或 Google Drive的图床设置。
选择左下角的加号添加配置,选择Amazon S3,然后右侧点击自定义,并相关信息:
- 服务器url为
https://stdcdn.com/
- 空间名称为上文你设置的Site Name,比如之前我写的exampleCSDN
- Access Key和Secret Key就是上一步骤中PoweredBy.Cloud已经成功申请的Access Keys里的Access Key和Secret Access Key。
- 域名空出
- 保存路径 可以自己设置名称,参考它下方的命名规则
点击保存,然后在菜单栏中选择使用这个配置,如下图中的图床设置为Amazon S3
测试
我选择了一个文件使用upic上传,可以看到成功上传到OneDrive,并且也可以在markdown里使用,输出链接为https://stdcdn.com/exampleCSDN/45KMi0.png
参考链接
【1】免费把你的 GoogleDrive 和 OneDrive 变成图床
【2】upic 设置 Amazon S3 文档
【3】Amazon S3 compatible API 文档
版权声明
本文为[未知的生活]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_37514135/article/details/124348963
边栏推荐
- Leetcode162 - find peak - dichotomy - array
- epoll 的EPOLLONESHOT 事件———实例程序
- ASEMI超快恢复二极管与肖特基二极管可以互换吗
- [stc8g2k64s4] introduction of comparator and sample program of comparator power down detection
- 编程哲学——自动加载、依赖注入与控制反转
- Swift: entry of program, swift calls OC@_ silgen_ Name, OC calls swift, dynamic, string, substring
- Set up an AI team in the game world and start the super parametric multi-agent "chaos fight"
- Detailed comparison between asemi three-phase rectifier bridge and single-phase rectifier bridge
- LeetCode167-两数之和II-双指针-二分-数组-查找
- 大文件如何快速上传?
猜你喜欢
Programming philosophy - automatic loading, dependency injection and control inversion
在游戏世界组建一支AI团队,超参数的多智能体「大乱斗」开赛
Vous ne connaissez pas encore les scénarios d'utilisation du modèle de chaîne de responsabilité?
Arduino for esp8266串口功能简介
QT interface optimization: QT border removal and form rounding
Explain TCP's three handshakes in detail
Detailed explanation of C language knowledge points -- first knowledge of C language [1]
Detailed comparison between asemi three-phase rectifier bridge and single-phase rectifier bridge
LeetCode162-寻找峰值-二分-数组
Interviewer: let's talk about the process of class loading and the mechanism of class loading (parental delegation mechanism)
随机推荐
脏读、不可重复读和幻读介绍
We reference My97DatePicker to realize the use of time plug-in
Find daffodils - for loop practice
Progress in the treatment of depression
Chapter 7 of JVM series -- bytecode execution engine
select 同时接收普通数据 和 带外数据
pnpm安装使用
epoll 的EPOLLONESHOT 事件———实例程序
vscode中文插件不生效问题解决
抑郁症治疗的进展
科技的成就(二十一)
How do I open the win10 startup folder?
【工厂模式详解】工厂方法模式
QT actual combat: Yunxi calendar
Leetcode162 - find peak - dichotomy - array
Go basic reflection
Borui data and F5 jointly build the full data chain DNA of financial technology from code to user
Leetcode151 - invert words in string - String - simulation
帧同步 实现
外包幹了四年,廢了...