Add delete unused uploads admin function

This commit is contained in:
rubenwardy
2020-05-30 16:48:37 +01:00
parent ed78a2e06f
commit c1b4256d44
3 changed files with 32 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ def doFileUpload(file, fileType, fileTypeDesc):
ext = getExtension(file.filename)
if ext is None or not ext in allowedExtensions:
flash("Please upload load " + fileTypeDesc, "danger")
flash("Please upload " + fileTypeDesc, "danger")
return None, None
if isImage and not isAllowedImage(file.stream.read()):