mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-23 06:22:24 +01:00
Fix typo in zip uploading
This commit is contained in:
parent
1da86f27a7
commit
18b9fb3876
@ -50,7 +50,7 @@ def doFileUpload(file, fileType, fileTypeDesc):
|
|||||||
if fileType == "image":
|
if fileType == "image":
|
||||||
allowedExtensions = ["jpg", "jpeg", "png"]
|
allowedExtensions = ["jpg", "jpeg", "png"]
|
||||||
isImage = True
|
isImage = True
|
||||||
elif filetype == "zip":
|
elif fileType == "zip":
|
||||||
allowedExtensions = ["zip"]
|
allowedExtensions = ["zip"]
|
||||||
else:
|
else:
|
||||||
raise Exception("Invalid fileType")
|
raise Exception("Invalid fileType")
|
||||||
|
Loading…
Reference in New Issue
Block a user