It happens only with this one file? Even on consecutive attempts but it's ok if you change files? Is this the idea?
TokenMismatchException only on certain file upload?
Has anyone ever seen a "TokenMismatchException in VerifyCsrfToken.php line 68:" error being thrown only on a certain file upload?
I have an import script in a controller which takes an imported .xlsx file and turns it into database data, and it's worked fine up until this point. But now I've gotten one file I need to import and just this file throws the TokenMismatchException error.
Yes, the CSRF token is there, and this isn't being done over ajax. Only one file throws this error.
Banging my head against a wall here because as far as I can tell the file looks fine, data just like others that have worked.
it happens when your file is smaller than the max upload size but more than the max post size. The input is truncated at the max post size which means that the csrf token is lost
Please or to participate in this conversation.