mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: extract content from image meta before uploading file
This commit is contained in:
parent
c78c2b39fe
commit
9534247713
|
|
@ -61,7 +61,8 @@ class BaseDocumentExtractNode(IDocumentExtractNode):
|
|||
'application_id': str(application.id) if application.id else None,
|
||||
'file_id': str(image.id)
|
||||
}
|
||||
f = bytes_to_uploaded_file(image.meta['content'], image.file_name)
|
||||
file_bytes = image.meta.pop('content')
|
||||
f = bytes_to_uploaded_file(file_bytes, image.file_name)
|
||||
FileSerializer(data={
|
||||
'file': f,
|
||||
'meta': meta,
|
||||
|
|
|
|||
Loading…
Reference in New Issue