Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. filepicker.pickAndStore(
  2. {
  3. multiple: false,
  4. maxFiles: 1,
  5. services: ['COMPUTER', 'GOOGLE_DRIVE', 'DROPBOX']
  6. },{
  7. access:"private"
  8. },
  9. function(InkBlobs){
  10. var fileTotal = 0;
  11. _.each(InkBlobs, function (el) {
  12. fileTotal += el.size;
  13. Session.set('fileTotal', fileTotal);
  14. el.size = bytesToSize(el.size);
  15. var fullName = el.filename;
  16. el.mimetype = fullName;
  17. el.filename = longFileName(el.filename);
  18. });
  19. Session.set('files', InkBlobs);
  20. },
  21. function(FPError){
  22. if(FPError && FPError.code !== 101)
  23. showError(FPError.toString());
  24. }
  25. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement