Skip to main content

Posts

Showing posts from 2019

is MEteor is Cordova

  if (e.currentTarget.files && e.currentTarget.files[0]) {           var file = e.currentTarget.files[0];           var  chunkSize = Infinity;       var options = {           endpoint: "http://52.66.153.82:8000/uploads",           chunkSize: chunkSize,           metadata: {               filename: file.name,               user_id: "Ankit",           },            header: {               "key":"value"           },           beforeSend: function(xhr){xhr.setRequestHeader('X-Test-Header', 'test-value');},           onError: function(error) {               if (error.or...
  function upload_image(e, template) {       $("#loader_class").removeClass("div_hide_class");       if (e.currentTarget.files && e.currentTarget.files[0]) {           var file = e.currentTarget.files[0];           var  chunkSize = Infinity;       var options = {           endpoint: "http://13.232.101.233:8000/uploads",           chunkSize: chunkSize,           metadata: {               filename: file.name,               user_id: "Ankit",           },            header: {               "key":"value"           },           beforeSend: function(xhr){xhr.setRequestHeader('X-Test-...