mirror of https://github.com/langgenius/dify.git
fix the error of unable to retrieve url from file (#13603)
This commit is contained in:
parent
f9b3cd1b68
commit
688d07e9c3
|
|
@ -32,7 +32,7 @@ def get_attr(*, file: File, attr: FileAttribute):
|
|||
case FileAttribute.TRANSFER_METHOD:
|
||||
return file.transfer_method.value
|
||||
case FileAttribute.URL:
|
||||
return file.remote_url
|
||||
return _to_url(file)
|
||||
case FileAttribute.EXTENSION:
|
||||
return file.extension
|
||||
case FileAttribute.RELATED_ID:
|
||||
|
|
|
|||
Loading…
Reference in New Issue