Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion froala_editor/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def image_upload(request):
'image/pjpeg',
'image/x-png',
'image/png',
'image/gif'
'image/gif',
'image/webp'
]
if not the_file.content_type in allowed_types:
return HttpResponse(json.dumps({'error': _('You can only upload images.')}),
Expand Down