From 0958c1ae6ba7230071b95271c53436ca11484176 Mon Sep 17 00:00:00 2001 From: xiaji Date: Mon, 25 May 2026 22:08:13 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=A7=BB=E9=99=A4=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=BA=95=E9=83=A8=E9=87=8D=E5=A4=8D=E7=9A=84API=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/templates/core/public_content.html | 60 ------------------------- 1 file changed, 60 deletions(-) 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