Hi guys. When I'm trying to upload about 20MB video file, it return a Token Mismatch error, but when I upload 17MB or below, it works fine. Why is that?
Hi @jonjie0317. I believe this has something to do with PHP. If your post_max_size property in your php ini file is exceeded, the $_FILEs and $_POST superglobals will not be filled. Because of this the CSRF token wil also not be posted.
Can you set post_max_size a little higher and see if that helps?
If you want to catch this error you could consider to update the max_image_size and max_file_size options in lfm.php to a value that is lower than the setting in your .ini file. (I didn't test if this works yet, but sounds plausible)
@gwleuverink Hi, I'll try it later. Thank you for your reply.
Hello. Any update about this issue? After I updated this, I'm now getting the File is too big error message. Why is that? I'm just uploading 55MB. Thanks!
@gwleuverink
@g0110280
@jonjie0317 have you adjusted settings in Apache or NginX?
May I ask what setting is that?
Please check this comment https://github.com/UniSharp/laravel-filemanager/issues/592#issuecomment-387636533.
I've already changed it.
upload_max_filesize: 256MB
post_max_size: 256MB
Still getting the same error. Any updates?
Can you post the exact error trace using the network tab inside chrome after a failed upload?
Hi @gwleuverink . Got no error and this is the only response:
{"html":"<p>Folder is empty.<\/p>\n","working_dir":"\/3\/Vids\/Myself"}
@gwleuverink What's do I have to do next?
I can upload up to 51.9MB. And not greater than that. It shows an error File is too big. Please see the image below:

Check this comment https://github.com/UniSharp/laravel-filemanager/issues/592#issuecomment-388404299. See if changing memory_limit config helps.
I tried to changed it in lfm.php and in php.ini but still getting the same message.
I see the File is too big message in dropzone.min.js file. But I don't know what its checking. Uhm really confusing.
You might also need to change max_file_size and max_image_size in config/lfm.php.
It's working now!! Should I also change 'should_validate_size' => false to 'should_validate_size' => true ?
I currently have this setup. Is it fine to setup like this:

We only pass max_file_size and max_image_size to dropzone. Setting should_validate_size won't matter in this case.
Great! It works now. Thanks a lot @g0110280 .
Most helpful comment
We only pass
max_file_sizeandmax_image_sizeto dropzone. Settingshould_validate_sizewon't matter in this case.