mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-04 10:03:42 -07:00
WebHost: fix is_zipfile check for flask FileStorage objects
- and assorted cleanup
This commit is contained in:
@@ -100,7 +100,7 @@ def uploads():
|
||||
if file.filename == '':
|
||||
flash('No selected file')
|
||||
elif file and allowed_file(file.filename):
|
||||
if zipfile.is_zipfile(file.filename):
|
||||
if zipfile.is_zipfile(file):
|
||||
with zipfile.ZipFile(file, 'r') as zfile:
|
||||
res = upload_zip_to_db(zfile)
|
||||
if type(res) == str:
|
||||
|
||||
Reference in New Issue
Block a user