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

Success multiple event triggers multiple times #619

Open
Stelikas opened this issue May 11, 2022 · 0 comments
Open

Success multiple event triggers multiple times #619

Stelikas opened this issue May 11, 2022 · 0 comments

Comments

@Stelikas
Copy link

I was trying to do some API requests after the uploading is finished and i noticed that @vdropzone-complete-multiple event is triggered multiple times.

<vue-dropzone ref="myVueDropzone" id="dropzone" :options="dropzoneOptions" :useCustomSlot="true" @vdropzone-complete-multiple="uploadComplete" />

Options:

      dropzoneOptions: {
                    url: '/admin/files/upload',
                    thumbnailWidth: 200,
                    maxFilesize: 0.5,
                    uploadMultiple: true,
                    acceptedFiles: 'image/*',
                    renameFile: function (file) {
                        let newName = new Date().getTime() + '_' + file.name;
                        return newName;
                    },
                    headers: { 'X-CSRF-TOKEN': this.token }
                }

Vue-Dropzone version: ^3.6.0

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

No branches or pull requests

1 participant