Support 'image' in file_type_by_extension (bug 740)
file_type_by_extension formerly filtered out content that was not a video nor an audio file.
This commit is contained in:
parent
689431fede
commit
64fcdd83ad
|
@ -653,7 +653,7 @@ def file_type_by_extension(extension):
|
|||
|
||||
if type is not None and '/' in type:
|
||||
filetype, rest = type.split('/', 1)
|
||||
if filetype in ('audio', 'video'):
|
||||
if filetype in ('audio', 'video', 'image'):
|
||||
return filetype
|
||||
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue