use lower case extensions

This commit is contained in:
j 2016-10-30 14:18:35 +01:00
parent e1f35b1ec8
commit 95131a6429

View file

@ -407,7 +407,7 @@ def upload(request):
file.file.delete() file.file.delete()
file.uploading = True file.uploading = True
name, extension = request.POST['filename'].rsplit('.', 1) name, extension = request.POST['filename'].rsplit('.', 1)
file.extension = extension file.extension = extension.lower()
file.width = -1 file.width = -1
file.pages = -1 file.pages = -1
file.save() file.save()