From 06f8f7a5f500458afac830b7d082e68542e8af59 Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Sun, 26 Jan 2014 17:07:26 -0500 Subject: [PATCH] Restrict filepicker uploads by extension #275 --- karmaworld/templates/partial/filepicker.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.25.1