Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to capture server response after successful upload #34

Open
kelvinthiongo opened this issue Nov 8, 2022 · 2 comments
Open

How to capture server response after successful upload #34

kelvinthiongo opened this issue Nov 8, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@kelvinthiongo
Copy link

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 darknessnerd added the enhancement New feature or request label Nov 9, 2022
@kelvinthiongo
Copy link
Author

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

@hocongtru95
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants