最近发现一个匿名免费的云盘平台 anonfile。感觉说不定什么时候可能就用得着,在这里记录一下。
https://anonfile.com/
匿名上传您的文件,并在AnonFiles上免费上传
我们为您提供20 GB的文件大小限制和无限带宽
虽说官网写的是20GB的大小限制,但是既然是匿名的,那就没办法统计每个用户上传的大小,所以我猜这个20GB的限制,应该也是不存在的。
唯一的缺点就是网速太慢,即使挂上梯子也没快多少。
这个网站还有面向开发者的上传api。
我试了一下,非常简单.
curl -F "file=@Downloads/timg.jpeg" https://anonfile.com/api/upload
{"status":true,"data":{"file":{"url":{"full":"https://anonfile.com/U4WbBb44n7/1_jpg","short":"https://anonfile.com/U4WbBb44n7"},"metadata":{"id":"U4WbBb44n7","name":"1.jpg","size":{"bytes":37201,"readable":"37.2 KB"}}}}}%
打开full
或者short
对应的链接就能访问:https://anonfile.com/v0XbBb47n3/timg_jpeg
API文档原文如下:
API Documentation
Want to upload straight to your account using our API? Please login for account API keys and more information on how to upload files to your account using our API.
UPLOAD
You send us files with POST and we will store them and return an url for you in JSON.
Request Example
curl -F "file=@test.txt" https://anonfile.com/api/upload
Successful Response
{
"status": true,
"data": {
"file": {
"url": {
"full": "https://anonfile.com/u1C0ebc4b0/file.txt",
"short": "https://anonfile.com/u1C0ebc4b0"
},
"metadata": {
"id": "u1C0ebc4b0",
"name": "file.txt",
"size": {
"bytes": 6861,
"readable": "6.7 KB"
}
}
}
}
}
Error Response
{
"status": false,
"error": {
"message": "The file is too large. Max filesize: 5 GiB",
"type": "ERROR_FILE_SIZE_EXCEEDED",
"code": 31
}
}
Error Codes & Types
(10) ERROR_FILE_NOT_PROVIDED
(11) ERROR_FILE_EMPTY
(12) ERROR_FILE_INVALID
(20) ERROR_USER_MAX_FILES_PER_HOUR_REACHED
(21) ERROR_USER_MAX_FILES_PER_DAY_REACHED
(22) ERROR_USER_MAX_BYTES_PER_HOUR_REACHED
(23) ERROR_USER_MAX_BYTES_PER_DAY_REACHED
(30) ERROR_FILE_DISALLOWED_TYPE
(31) ERROR_FILE_SIZE_EXCEEDED
(32) ERROR_FILE_BANNED
(40) STATUS_ERROR_SYSTEM_FAILURE
INFO
You can send us a GET request to grab info about a file. We respond with a JSON array.
Hint: Use the "status" key (true/false) if you want to check if a file exists.
Also, if the requested file does not exist, the response will be sent as a 404.
The URL format is:
https://anonfile.com/api/v2/file/{id}/info
Example Request
curl https://anonfile.com/api/v2/file/u1C0ebc4b0/info
INFO Response
{
"status": true,
"data": {
"file": {
"url": {
"full": "https://anonfile.com/u1C0ebc4b0/file.txt",
"short": "https://anonfile.com/u1C0ebc4b0"
},
"metadata": {
"id": "u1C0ebc4b0",
"name": "file.txt",
"size": {
"bytes": 6861,
"readable": "6.7 KB"
}
}
}
}
}
Info Error Response
{
"status": false,
"error": {
"message": "The file you are looking for does not exist.",
"type": "FILE_NOT_FOUND",
"code": 404
}
}
- 另外还有个它的关联网站,写着"Visit our friends: BayFiles"。看起来和anonfile除了样式上不一样以外,其他全都一样,可能只是改了下css就发布到另一个服务器上了。