Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $('.uploader').fileupload(
  2. {
  3. dropZone: $('.upload-drop-zone'),
  4. dataType: 'json',
  5. url: uploadUrl,
  6. progress: function (e, data)
  7. {
  8. // data.files is an array of several files, so I don't know which file this progress event is for???
  9.  
  10. var progress = parseInt(data.loaded / data.total * 100, 10);
  11. }
  12. });
  13.  
  14.  
  15. // Later on I use this to start the upload of files
  16. $('.uploader').fileupload('send', { files: myArrayOfFiles });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement