fix: Fix path leakage caused by file upload

This commit is contained in:
Shirasawa 2025-05-26 12:20:00 +08:00 committed by GitHub
parent 82716f3789
commit 0dc29a220f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,7 +189,7 @@ def upload_file(
log.exception(e)
raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST,
detail=ERROR_MESSAGES.DEFAULT(e),
detail=ERROR_MESSAGES.DEFAULT("Error uploading file"),
)