Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filepicker.pickAndStore(
- {
- multiple: false,
- maxFiles: 1,
- services: ['COMPUTER', 'GOOGLE_DRIVE', 'DROPBOX']
- },{
- access:"private"
- },
- function(InkBlobs){
- var fileTotal = 0;
- _.each(InkBlobs, function (el) {
- fileTotal += el.size;
- Session.set('fileTotal', fileTotal);
- el.size = bytesToSize(el.size);
- var fullName = el.filename;
- el.mimetype = fullName;
- el.filename = longFileName(el.filename);
- });
- Session.set('files', InkBlobs);
- },
- function(FPError){
- if(FPError && FPError.code !== 101)
- showError(FPError.toString());
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement