Closed jakubbilko closed 8 years ago
You can now attach a callback fired on every progress event dispatched from the requests:
progress
const connection = Syncano({ apiKey }); connection.onProgress((data) => { console.log(data); // { direction: 'upload', // lengthComputable: true, // loaded: 124, // total: 3777 } });
To remove the callback, just set it to null: connection.onProgress(null);.
connection.onProgress(null);
The event is fired only when using form-data requests (containing files).
form-data
You can now attach a callback fired on every
progress
event dispatched from the requests:To remove the callback, just set it to null:
connection.onProgress(null);
.The event is fired only when using
form-data
requests (containing files).