|
@@ -186,7 +186,7 @@ async def download_file(
|
|
|
# if '../' in filename or '/' in filename:
|
|
|
# return JSONResponse(status_code=404, content={'code': 404, "msg": '警告:禁止跨路径下载文件'})
|
|
|
|
|
|
- file_path = os.path.join(UPLOAD_mergefile_PATH, '/uploads/', filename)
|
|
|
+ file_path = os.path.join( f'{UPLOAD_mergefile_PATH}/uploads/', filename)
|
|
|
print(file_path)
|
|
|
|
|
|
# 检查文件是否存在
|