Skip to content

Commit

Permalink
Added 3rd party service and file extension whitelist to filepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
seanrose committed Apr 5, 2014
1 parent 7d1fba3 commit 907732c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/views/presentations/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ Template.upload.events({
e.preventDefault();
$('#upload').addClass('fade-out');
filepicker.setKey('A3UuvGmumRN273ixbsJnVz');
filepicker.pick(function(InkBlob) {
var pickerOptions = {
extension: ['.pdf', '.ppt', '.pptx'],
services: ['COMPUTER', 'BOX','DROPBOX', 'GOOGLE_DRIVE', 'SKYDRIVE', 'URL']
}
filepicker.pick(pickerOptions, function(InkBlob) {
Meteor.call('createPresentation', InkBlob.url, function(error, presentationId) {
Router.go('presenter', {_id: presentationId});
});
Expand Down

0 comments on commit 907732c

Please sign in to comment.