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...