drop-zone icon indicating copy to clipboard operation
drop-zone copied to clipboard

How to capture server response after successful upload

Open kelvinthiongo opened this issue 2 years ago • 2 comments

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

kelvinthiongo avatar Nov 08 '22 09:11 kelvinthiongo

@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 avatar Nov 24 '22 15:11 kelvinthiongo

@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);
                }
            };
        }

hocongtru95 avatar Nov 29 '22 09:11 hocongtru95