forked from 0x2620/pandora
use lower case extensions
This commit is contained in:
parent
e1f35b1ec8
commit
95131a6429
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue