mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-10-18 06:10:44 +08:00
Fix upload docx
This commit is contained in:
@@ -378,7 +378,7 @@ class Backend_Api(Api):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception(e)
|
logger.exception(e)
|
||||||
is_media = is_allowed_extension(filename)
|
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:
|
if not is_media and not is_supported:
|
||||||
os.remove(copyfile)
|
os.remove(copyfile)
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user