跳转至

gofile

不限文件大小、不限文件数量、不限带宽、无需注册的文件共享神器。

https://gofile.io/welcome

网页使用

点击上传,支持同时上传多个文件 上传ing 上传完成,生成的链接为下载链接 打开下载链接,可以对上传的单个文件或目录进行操作,重命名、复制、移动位置、公开/非公开、设置密码、文件描述、过期删除、tag等。 分享该链接给其他人下载

API使用

使用网站提供的API,可以使用命令行的方式直接在服务器终端上传文件。

API使用说明:https://gofile.io/api

测试网站状态

$ curl -X GET 'https://api.gofile.io/servers'
{"status":"ok","data":{"servers":[{"name":"store15","zone":"eu"},{"name":"store14","zone":"eu"},{"name":"store3","zone":"na"},{"name":"store9","zone":"na"}]}}

上传单个文件

# 在命令下使用curl命令上传文件,返回json格式的信息,包含文件下载的链接、文件MD5、上传状态等
$ curl -X POST 'https://store1.gofile.io/contents/uploadfile'  -F "file=@Ceratobasidium_sp_AG-Ba.fa"
{"data":{"code":"6K1tBu","downloadPage":"https://gofile.io/d/6K1tBu","fileId":"9e9a213b-f676-4ea3-a859-0e4466f0f8df","fileName":"Ceratobasidium_sp_AG-Ba.fa","guestToken":"6Vy6jhURpqIWMeinlB4IyzcMepuFFlSX","md5":"836bcad2e33310b62d122b53845d931b","parentFolder":"7f05a9a8-4aed-4b7a-ad4f-b3c64daca4c5"},"status":"ok"}
# 在浏览器中打开返回的链接 https://gofile.io/d/6K1tBu 即可下载
同时上传单个文件
$ curl -X POST 'https://store1.gofile.io/contents/uploadfile'  -F "file=@fuse-3.3.0.tar.xz" -F "file=@fuse-3.7.0.tar.xz"
{"data":{"code":"W5g4Te","downloadPage":"https://gofile.io/d/W5g4Te","fileId":"e36ca37a-786b-42f7-94f7-9b4e7dec4539","fileName":"fuse-3.3.0.tar.xz","guestToken":"3Ow08Vtkb3HGJ1FvrOeKtxgRLRkylT3M","md5":"2568a6bd41f5a4dead66e119a83cebaf","parentFolder":"5add2a42-ef4e-44ad-addf-a06657b9f963"},"status":"ok"}
下载的API需要付费用户才能使用。

本文阅读量  次
本站总访问量  次