Is your upload being chunked? If so, that might be why. Check for it in network tab of dev tools.
Dec 18, 2016
5
Level 1
TokenMismatchException with big files
I render token field in my form
<form method="POST" action="http://mi.com/zak" accept-charset="UTF-8" enctype="multipart/form-data">
<input name="_token" type="hidden" value="T0T73F8F13mDZK2BiLG74D1h6XfKkJqcpuMQuDj4">
Form have input file, and input text with value of base64 generate img code. And when I upload small images all is well but when I try to upload img more than 200KB (on real hosting) I get error
TokenMismatchException in compiled.php line 3227
I do not understand how this could be connect with the large file. Do you have any idea why this is happening and how this can fix?
Level 50
That can also happen if the file is bigger than your php/webserver is set to allow (it's quite annoying) :-/
1 like
Please or to participate in this conversation.