当前位置:网站首页>免费在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
边栏推荐
- Using MATLAB programming to realize the steepest descent method to solve unconstrained optimization problems
- Programming philosophy - automatic loading, dependency injection and control inversion
- Leetcode149 - maximum number of points on a line - Math - hash table
- 每日一题-LeetCode396-旋转函数-递推
- Detailed comparison between asemi three-phase rectifier bridge and single-phase rectifier bridge
- Sqlserver transaction and lock problem
- 利用 MATLAB 编程实现最速下降法求解无约束最优化问题
- MDS55-16-ASEMI整流模块MDS55-16
- What is the main purpose of PCIe X1 slot?
- What is the effect of Zhongfu Jinshi wealth class 29800? Walk with professional investors to make investment easier
猜你喜欢
Swift: entry of program, swift calls OC@_ silgen_ Name, OC calls swift, dynamic, string, substring
QT interface optimization: QT border removal and form rounding
eolink 如何助力遠程辦公
OC to swift conditional compilation, marking, macro, log, version detection, expiration prompt
Borui data and F5 jointly build the full data chain DNA of financial technology from code to user
面试官:说一下类加载的过程以及类加载的机制(双亲委派机制)
Swift - literal, literal protocol, conversion between basic data types and dictionary / array
【NLP】HMM隐马尔可夫+维特比分词
[stc8g2k64s4] introduction of comparator and sample program of comparator power down detection
博睿数据携手F5共同构建金融科技从代码到用户的全数据链DNA
随机推荐
Interviewer: let's talk about the process of class loading and the mechanism of class loading (parental delegation mechanism)
Unity_代码方式添加绑定按钮点击事件
Role of asemi rectifier module mdq100-16 in intelligent switching power supply
The difference between having and where in SQL
封面和标题中的关键词怎么写?做自媒体为什么视频没有播放量
Arduino for esp8266串口功能简介
每日一题-LeetCode396-旋转函数-递推
1n5408-asemi rectifier diode
pnpm安装使用
外包幹了四年,廢了...
What is the effect of Zhongfu Jinshi wealth class 29800? Walk with professional investors to make investment easier
async关键字
Swift:Entry of program、Swift调用OC、@_silgen_name 、 OC 调用Swift、dynamic、String、Substring
When splicing HQL, the new field does not appear in the construction method
8.3 语言模型与数据集
如何打开Win10启动文件夹?
MDS55-16-ASEMI整流模块MDS55-16
Leetcode162 - find peak - dichotomy - array
L'externalisation a duré quatre ans.
QT actual combat: Yunxi calendar