# Cakephp 4.2 problem csrf

**URL:** <https://discourse.cakephp.org/t/cakephp-4-2-problem-csrf/11239>\
**Category:** Need Help\
**Created:** [May 25, 2023, 8:17am UTC](https://discourse.cakephp.org/t/cakephp-4-2-problem-csrf/11239 "2023-05-25T08:17:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arbims](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/arbims/32/2378_2.png) [@arbims](https://discourse.cakephp.org/u/arbims)\
**Post date:** [May 25, 2023, 8:17am UTC](https://discourse.cakephp.org/t/cakephp-4-2-problem-csrf/11239/1 "2023-05-25T08:17:20Z")

</div>

Hello evryone  
I’have problem csrf when upload mp4 file

```auto
CSRF token from either the request body or request headers did not match or is missing

```

---

<div class="post-metadata">

**Author:** ![jarekgol](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jarekgol](https://discourse.cakephp.org/u/jarekgol)\
**Post date:** [May 31, 2023, 8:25am UTC](https://discourse.cakephp.org/t/cakephp-4-2-problem-csrf/11239/2 "2023-05-31T08:25:46Z")

</div>

Did you try upload some little test file, like “test.txt” with single letter A inside? Is this kind of file works?

---

<div class="post-metadata">

**Author:** ![Kaiser85](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kaiser85/32/2714_2.png) [@Kaiser85](https://discourse.cakephp.org/u/Kaiser85)\
**Post date:** [June 1, 2023, 5:48pm UTC](https://discourse.cakephp.org/t/cakephp-4-2-problem-csrf/11239/3 "2023-06-01T17:48:07Z")

</div>

Can you show us the form html and the code that’s uploading the mp4?
