drop-zone
drop-zone copied to clipboard
How to capture server response after successful upload
My server side script returns details about the uploaded files (url and ids). I need to capture this on my vue project but can't find a way with this dropzone vue
@darknessnerd I understand that you marked my issue as enhancement but I am still stranded. Is there any way you can guide me on how to work on this. Kindly.
@kelvinthiongo using @sending event, capture xhr parameter
sending(files, xhr, formData) {
function callback(e) {
console.log(JSON.parse(e));
}
xhr.onreadystatechange = () => {
if (xhr.readyState === 4) {
callback(xhr.response);
}
};
}