Commit 13636b03 authored by birk's avatar birk
Browse files

Recognize Illustrator files as documents

parent 1bae08ad
......@@ -156,7 +156,7 @@ class MediaFileData():
image_extensions = ['.jpg', '.jpeg', '.tif', '.tiff', '.png', '.bmp', '.gif', '.psd']
video_extensions = ['.mov', '.mkv', '.mp4', '.avi', '.mpg', '.mpeg', '.3pg', '.vob']
sound_extensions = ['.aif', '.aiff', '.wav', '.mp3', '.m4a', '.aac']
document_extensions = ['.pdf', '.doc', '.docx', '.txt']
document_extensions = ['.pdf', '.doc', '.docx', '.txt', '.ai']
filename, file_extension = os.path.splitext(self.filename)
if file_extension.lower() in image_extensions:
return 'image'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment