mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 19:59:11 +08:00
feat[plugin]: reformat
This commit is contained in:
parent
220731c8d6
commit
808a401d1e
@ -62,7 +62,7 @@ class PluginUploadFileApi(Resource):
|
||||
conversation_id=None,
|
||||
)
|
||||
|
||||
extension = guess_extension(tool_file.mimetype) or '.bin'
|
||||
extension = guess_extension(tool_file.mimetype) or ".bin"
|
||||
preview_url = ToolFileManager.sign_file(tool_file_id=tool_file.id, extension=extension)
|
||||
tool_file.mime_type = mimetype
|
||||
tool_file.extension = extension
|
||||
|
Loading…
x
Reference in New Issue
Block a user