diff --git a/core/templates/core/public_content.html b/core/templates/core/public_content.html index 9a9fefe..e7a8678 100644 --- a/core/templates/core/public_content.html +++ b/core/templates/core/public_content.html @@ -312,64 +312,4 @@ function toggleApiPanel() { - - -
-
-
- 临时文件上传 API -
-
-
-
上传文件
-

端点: POST /api/v1/temp-upload/

- -
参数
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
参数名类型必填说明
titlestring文件标题
filefile文件 (最大500MB)
expire_typestring过期时间: expire_1h (1小时) / expire_1d (1天) / expire_7d (7天)
- -
响应示例
-
{
-  "success": true,
-  "message": "上传成功",
-  "id": 1,
-  "file_url": "/media/public_files/xxx.pdf",
-  "file_name": "document.pdf",
-  "file_size": 1048576,
-  "expire_at": "2026-05-25T18:30:00Z",
-  "expire_type": "expire_1d"
-}
- -
cURL 示例
-
curl -X POST -F "file=@document.pdf" -F "title=测试文件" -F "expire_type=expire_1d" http://localhost:8000/api/v1/temp-upload/
-
-
{% endblock %} \ No newline at end of file