extension should be lowercase

This commit is contained in:
j 2015-05-23 11:06:22 +02:00
parent 27e9bc62fb
commit 9191a9c196

View file

@ -204,7 +204,7 @@ def addMedia(request, data):
f.path = data.get('filename', 'Untitled')
extension = f.path.split('.')
if len(extension) > 1:
extension = extension[-1]
extension = extension[-1].lower()
else:
extension = 'webm'
f.selected = True