服务正在运行中

运行正常
最大文件大小 {{ max_file_size_mb }} MB
可保存时间 1小时 / 24小时 / 7天
每日流量限制 {{ daily_gb }} GB / IP
API 上传 POST /api/upload

API 调用方法 (参考 Flask 风格)
1. 上传文件:
POST /api/upload
Headers: Content-Type: multipart/form-data
Form-data:
· file: <文件内容>
· expiry: 1h | 24h | 7d (可选, 默认24h)

2. 获取文件信息:
GET /api/file/<file_id>

3. 下载/访问文件:
GET /file/<file_id>

cURL 示例:
curl -k -X POST "https://xiaji-temp.duckdns.org/api/upload" \   -F "file=@example.jpg" \   -F "expiry=24h"

Python requests 示例:
import requests

url = "https://xiaji-temp.duckdns.org/api/upload"
files = {'file': open('example.jpg', 'rb')}
data = {'expiry': '24h'}
resp = requests.post(url, files=files, data=data, verify=False)
print(resp.json())

本月统计
总流量 {{ stats.total_gb }} GB
访问 IP 数 {{ stats.ip_count }}
文件上传数 {{ stats.file_count }}

点击或拖拽文件到此处

分享链接: