Guest User

Untitled

a guest
Aug 21st, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. $.ajax({
  2. url:'uploadExcel',
  3. data: new FormData($("#uploadForm")[0]),
  4. headers: {
  5. 'X-CSRF-TOKEN' : $('meta[name="_token"]').attr('content')
  6. },
  7. // dataType:'json',
  8. async: true,
  9. type:'post',
  10. cache: false,
  11. processData: false,
  12. contentType: false,
  13. success: function(){
  14. //chunk data from CSV
  15. },
  16. error: function(data){
  17. var errors = data.responseJSON;
  18. console.log(errors);
  19. },
  20. complete:function(completeData){
  21. console.log(completeData);
  22. }
  23. });
Advertisement
Add Comment
Please, Sign In to add comment