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

pat-upload event when all uploads are completed #1445

Open
petschki opened this issue Mar 7, 2025 · 0 comments
Open

pat-upload event when all uploads are completed #1445

petschki opened this issue Mar 7, 2025 · 0 comments

Comments

@petschki
Copy link
Member

petschki commented Mar 7, 2025

I though that uploadAllCompleted event tells me, that all uploads are completed -> wrong 🤔

Since this event gets triggered on Dropzone.success, its fired after each uploaded file. The correct event would be Dropzone.queuecomplete. But with this event you do not have the data of the uploaded files. This needs investigation who uses uploadAllComplete and how ... currently greping mockup shows, that its not used at all, since tinyce now has the contentbrowser.

Mainly this is "just" a documentation issue, because all pat-uploadoptions get injected into Dropzone so you can simply use data-pat-upload="queuecomplete: my_complete_function" and register it as window.my_complete_function somehwere in your code.

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