From: Charles Connell Date: Sun, 26 Jan 2014 22:07:26 +0000 (-0500) Subject: Restrict filepicker uploads by extension #275 X-Git-Tag: release-20150131~198 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=06f8f7a5f500458afac830b7d082e68542e8af59;p=oweals%2Fkarmaworld.git Restrict filepicker uploads by extension #275 --- diff --git a/karmaworld/templates/partial/filepicker.html b/karmaworld/templates/partial/filepicker.html index cc91315..2a133ad 100644 --- a/karmaworld/templates/partial/filepicker.html +++ b/karmaworld/templates/partial/filepicker.html @@ -14,7 +14,7 @@ data-fp-button-text=" add notes" data-fp-drag-text="Drop Some Knowledge" data-fp-drag-class="dragdrop show-for-medium-up large-7 columns" - data-fp-mimetypes="*/*" + data-fp-extensions=".pdf,.doc,.docx,.txt,.html,.rtf,.odt,.png,.jpg,.jpeg,.ppt,.pptx" data-fp-store-path="{{ course.school.slug }}/ {{ course.slug }}/" data-fp-store-location="S3" data-fp-services="COMPUTER,DROPBOX,URL,GOOGLE_DRIVE,EVERNOTE,GMAIL,BOX,FACEBOOK,FLICKR,PICASA,IMAGE_SEARCH,WEBCAM,FTP"