Upload large file failed with : CSRF error. Small file is OK

I am using CakePHP 4.2, and Upload plugin.

The app can upload small files OK, but when I upload 30 MB file, it failed and gives error message: CSRF token from either the request body or request headers did not match or is missing

Is there anything to do with multi-part form upload?
How to fix this ?

Thank you very much

What are your post_max_size and upload_max_filesize ini values?

Thank you very much Zuluru,

I did changed Upload_max_filesize to 512 MB, but forgot about the post_max_size. My bad.

It works fine now. Thanks again.