mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Fix upload docx
This commit is contained in:
parent
88d8275f1a
commit
6948ab9b7d
1 changed files with 1 additions and 1 deletions
|
|
@ -378,7 +378,7 @@ class Backend_Api(Api):
|
|||
except Exception as e:
|
||||
logger.exception(e)
|
||||
is_media = is_allowed_extension(filename)
|
||||
is_supported = supports_filename(filename)
|
||||
is_supported = result or supports_filename(filename)
|
||||
if not is_media and not is_supported:
|
||||
os.remove(copyfile)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue