From 95131a64297400b3c90bc40923dfb9d78e016a12 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 30 Oct 2016 14:18:35 +0100 Subject: [PATCH] use lower case extensions --- pandora/document/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/document/views.py b/pandora/document/views.py index fa950015..f96987fa 100644 --- a/pandora/document/views.py +++ b/pandora/document/views.py @@ -407,7 +407,7 @@ def upload(request): file.file.delete() file.uploading = True name, extension = request.POST['filename'].rsplit('.', 1) - file.extension = extension + file.extension = extension.lower() file.width = -1 file.pages = -1 file.save()