Spaces:
Running
Running
支持视频边下边播
Browse files
app.py
CHANGED
|
@@ -329,7 +329,7 @@ def upload_file(file: UploadFile = File(...), file_type: str = Form(...), curren
|
|
| 329 |
elif file_type == "cover":
|
| 330 |
max_size = 5 * 1024 * 1024
|
| 331 |
elif file_type == "post_video":
|
| 332 |
-
max_size =
|
| 333 |
|
| 334 |
if len(content) > max_size:
|
| 335 |
raise HTTPException(status_code=400, detail=f"文件过大,{file_type} 类型请限制在 {max_size // (1024*1024)}MB 以内")
|
|
|
|
| 329 |
elif file_type == "cover":
|
| 330 |
max_size = 5 * 1024 * 1024
|
| 331 |
elif file_type == "post_video":
|
| 332 |
+
max_size = 100 * 1024 * 1024
|
| 333 |
|
| 334 |
if len(content) > max_size:
|
| 335 |
raise HTTPException(status_code=400, detail=f"文件过大,{file_type} 类型请限制在 {max_size // (1024*1024)}MB 以内")
|