# Error (500 POST) on uploading video

**URL:** <https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591>\
**Category:** Questions\
**Tags:** v3\
**Created:** [June 14, 2021, 3:56pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591 "2021-06-14T15:56:02Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![QuentinJuhel](https://avatars.discourse-cdn.com/v4/letter/q/a587f6/32.png) [@QuentinJuhel](https://forum.getkirby.com/u/QuentinJuhel)\
**Post date:** [June 14, 2021, 3:56pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/1 "2021-06-14T15:56:02Z")

</div>

Hi everyone,

I’ve created a file field in my blueprint to upload and manage images and videos. I can upload images but when I try to upload video i got an error message : ‘No files were uploaded’

In my terminal I got an `[500]: POST /api/pages/works+projectname/fields/slideshow/upload `.

I looked at my php.ini if it’s come from the “post\_max\_size” and “upload\_max\_filesize”, and it’s not coming from this.

I don’t know where it’s coming from.

Thanks

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 14, 2021, 3:57pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/2 "2021-06-14T15:57:56Z")

</div>

How big is the file you are trying to upload? Maybe you are running into a timeout. Are you testing this on a remote server or locally?

---

<div class="post-metadata">

**Author:** ![QuentinJuhel](https://avatars.discourse-cdn.com/v4/letter/q/a587f6/32.png) [@QuentinJuhel](https://forum.getkirby.com/u/QuentinJuhel)\
**Post date:** [June 14, 2021, 4:04pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/3 "2021-06-14T16:04:34Z")

</div>

Hi my file is 9,7Mo heavy, look at my `php.ini` and I’ve seen it’s lighter than my `post_max_size` value. I’m working locally with [PHP’s built-in server](https://getkirby.com/docs/cookbook/setup/development-environment#php-s-built-in-server).

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 14, 2021, 4:16pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/4 "2021-06-14T16:16:27Z")

</div>

And what are you php.ini settings for

- memory\_limit
- upload\_max\_filesize
- post\_max\_size

`

---

<div class="post-metadata">

**Author:** ![QuentinJuhel](https://avatars.discourse-cdn.com/v4/letter/q/a587f6/32.png) [@QuentinJuhel](https://forum.getkirby.com/u/QuentinJuhel)\
**Post date:** [June 14, 2021, 4:19pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/5 "2021-06-14T16:19:49Z")

</div>

`memory_limit = 128M`  
`upload_max_filesize = 20`  
`post_max_size = 20M`

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 14, 2021, 4:26pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/6 "2021-06-14T16:26:23Z")

</div>

Have you already tried to increase these values? Particularly memory\_limit?

Where did you see this 500 error? Is there any more information in the logs?

And also, have you made sure you are looking at the correct php.ini?

`max_execution_time` is another value worth looking at…

---

<div class="post-metadata">

**Author:** ![QuentinJuhel](https://avatars.discourse-cdn.com/v4/letter/q/a587f6/32.png) [@QuentinJuhel](https://forum.getkirby.com/u/QuentinJuhel)\
**Post date:** [June 14, 2021, 4:39pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/7 "2021-06-14T16:39:01Z")

</div>

I tried to increase all this values. And I checked, I modified the correct php.ini.

I got the 500 error in my terminal, in the logs of my php built-in sever. Just before the 500 error I got this PHP warning :

`PHP Warning: POST Content-Length of 11881055 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 `

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 14, 2021, 4:55pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/8 "2021-06-14T16:55:35Z")

</div>

> [@QuentinJuhel](#):
>
> PHP Warning: POST Content-Length of 11881055 bytes exceeds the limit of 8388608 bytes

Have you restarted the server after making those changes?

---

<div class="post-metadata">

**Author:** ![QuentinJuhel](https://avatars.discourse-cdn.com/v4/letter/q/a587f6/32.png) [@QuentinJuhel](https://forum.getkirby.com/u/QuentinJuhel)\
**Post date:** [June 14, 2021, 4:56pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/9 "2021-06-14T16:56:34Z")

</div>

I changed the value, restart apache and when I look at my phpinfo page, the values are changed with the value I put in my php.ini.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 14, 2021, 5:06pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/10 "2021-06-14T17:06:20Z")

</div>

Hm, I guess you have allowed other files than images in your file blueprint?

Although, if the file type was not allowed, you should get a dialog in the Panel…

---

<div class="post-metadata">

**Author:** ![QuentinJuhel](https://avatars.discourse-cdn.com/v4/letter/q/a587f6/32.png) [@QuentinJuhel](https://forum.getkirby.com/u/QuentinJuhel)\
**Post date:** [June 14, 2021, 5:09pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/11 "2021-06-14T17:09:05Z")

</div>

Yes. I’m thinking, i’m running php 7.4 maybe by upgrading to php 8 can be an option.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [June 14, 2021, 7:21pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/12 "2021-06-14T19:21:34Z")

</div>

I have tested that it works with no issues in my environment even with huge files with the built-in server runningPHP 8, but 7.4 should be no issue either.

---

<div class="post-metadata">

**Author:** ![QuentinJuhel](https://avatars.discourse-cdn.com/v4/letter/q/a587f6/32.png) [@QuentinJuhel](https://forum.getkirby.com/u/QuentinJuhel)\
**Post date:** [June 15, 2021, 1:20pm UTC](https://forum.getkirby.com/t/error-500-post-on-uploading-video/22591/13 "2021-06-15T13:20:15Z")

</div>

I found the problem I was modifying `php.ini` in my `/etc/php/7.4/apache2 ` folder but by running php built in server, the `php.ini` I needed to modify was in the `	/etc/php/7.4/cli ` folder…  
I just have the idea to create a phpinfo file this morning in my project to check the path of my `php.ini`…
