白嫖Github的存储空间,通过jsdelivr全球加速(含有国内节点). 实现图床的目的.
目录介绍:
.
├── index.html # 简单上传页面
├── README.md
└── up.php # 上传接口,需要能访问github,建议放到非大陆服务器
0 directories, 3 files
使用:
配置选项
https://github.com/settings/tokens 去这个页面生成一个有写权限的token(write:packages前打勾)然后配置up.php中的相关字段..
define("REPO","testforapi");//必须是下面用户名下的公开仓库 define("USER","yumusb");//必须是当前GitHub用户名 define("MAIL","[email protected]");// define("TOKEN","YourToken");
就可以享受白嫖带来的乐趣了!