mirror of
https://github.com/langgenius/dify.git
synced 2026-05-01 07:58:02 +08:00
r2
This commit is contained in:
@ -63,7 +63,7 @@ class DatasourceFileMessageTransformer:
|
||||
mimetype = meta.get("mime_type")
|
||||
if not mimetype:
|
||||
mimetype = guess_type(filename)[0] or "application/octet-stream"
|
||||
|
||||
|
||||
# if message is str, encode it to bytes
|
||||
|
||||
if not isinstance(message.message, DatasourceMessage.BlobMessage):
|
||||
|
||||
Reference in New Issue
Block a user