fix(api): remove fixed source attribute from FileApi (#10353)

This commit is contained in:
-LAN- 2024-11-06 12:29:58 +08:00 committed by GitHub
parent ac0fed6402
commit 1dae1a71fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,6 @@ class FileApi(Resource):
content=file.read(),
mimetype=file.mimetype,
user=end_user,
source="datasets",
)
except services.errors.file.FileTooLargeError as file_too_large_error:
raise FileTooLargeError(file_too_large_error.description)