Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jedidiah's avatar

TokenMismatchException on Dropzone.js multi-upload

I am using dropzone.js to upload multiple files. So each file have their own ajax request when dragged to the zone. It works when files are uploaded one at a time but when I select multiple, I am getting this weird TokenMismatchException. I am using the form blade syntax so obviously there is always a hidden _token injected. What is a good way to handle this situation ? What is the clean way to regenerate _token in my form without needing to refresh the page ?

0 likes
1 reply

Please or to participate in this conversation.