extension should be lowercase
This commit is contained in:
parent
27e9bc62fb
commit
9191a9c196
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ def addMedia(request, data):
|
||||||
f.path = data.get('filename', 'Untitled')
|
f.path = data.get('filename', 'Untitled')
|
||||||
extension = f.path.split('.')
|
extension = f.path.split('.')
|
||||||
if len(extension) > 1:
|
if len(extension) > 1:
|
||||||
extension = extension[-1]
|
extension = extension[-1].lower()
|
||||||
else:
|
else:
|
||||||
extension = 'webm'
|
extension = 'webm'
|
||||||
f.selected = True
|
f.selected = True
|
||||||
|
|
Loading…
Reference in a new issue