# Problem with uploading large video files - IO/HTTP error

**URL:** <https://www.ruby-forum.com/t/problem-with-uploading-large-video-files-io-http-error/220076>\
**Category:** NGINX\
**Created:** [May 27, 2012, 3:44pm UTC](https://www.ruby-forum.com/t/problem-with-uploading-large-video-files-io-http-error/220076 "2012-05-27T15:44:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurdipe\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Post date:** [May 27, 2012, 3:44pm UTC](https://www.ruby-forum.com/t/problem-with-uploading-large-video-files-io-http-error/220076/1 "2012-05-27T15:44:53Z")

</div>

Hello,  
I recently moved one of my projects to new server using NGINX + php-fpm  
.The problem is, that when I upload ~50 MB video it works well, but when  
I try to upload bigger file - it gives me IO or sometimes HTTP error.

php.ini  
max\_execution\_time = 900  
max\_input\_time = 900  
memory\_limit = 2048M  
post\_max\_size = 2048M  
upload\_max\_filesize = 2048M  
file\_uploads = On

nginx.conf  
client\_max\_body\_size 2048m;  
client\_body\_timeout 900;  
client\_header\_timeout 900;

my php-fpm logs are empy, my nginx error log too  
Thanks

Posted at Nginx Forum:

> **[Problem with uploading large video files - IO/HTTP error](https://forum.nginx.org/read.php?2,226854,226854#msg-226854)**
>
> Hello, I recently moved one of my projects to new server using NGINX + php-fpm .The problem is, that when I upload ~50 MB video it works well, but when I try to upload bigger file - it gives me IO or sometimes HTTP error. php.ini max\_execution\_time =...

---

<div class="post-metadata">

**Author:** ![tophi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e9bcb4/32.png) [@tophi](https://www.ruby-forum.com/u/tophi)\
**Post date:** [May 27, 2012, 4:51pm UTC](https://www.ruby-forum.com/t/problem-with-uploading-large-video-files-io-http-error/220076/2 "2012-05-27T16:51:09Z")

</div>

the upload size is related with your disk size which nginx cache the  
temp  
file.  
please check where the temp file locates.

thanks  
George

---

<div class="post-metadata">

**Author:** ![tophi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e9bcb4/32.png) [@tophi](https://www.ruby-forum.com/u/tophi)\
**Post date:** [May 28, 2012, 10:15pm UTC](https://www.ruby-forum.com/t/problem-with-uploading-large-video-files-io-http-error/220076/3 "2012-05-28T22:15:19Z")

</div>

My /tmp/ folder is chmod 777 ,  
df -h  
/dev/md0 915G 220G 650G 26% /

Posted at Nginx Forum:

> **[Re: Problem with uploading large video files - IO/HTTP error](https://forum.nginx.org/read.php?2,226854,226908#msg-226908)**
>
> Hello, I recently moved one of my projects to new server using NGINX + php-fpm .The problem is, that when I upload ~50 MB video it works well, but when I try to upload bigger file - it gives me IO or sometimes HTTP error. php.ini max\_execution\_time =...

---

<div class="post-metadata">

**Author:** ![tophi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e9bcb4/32.png) [@tophi](https://www.ruby-forum.com/u/tophi)\
**Post date:** [May 29, 2012, 3:17am UTC](https://www.ruby-forum.com/t/problem-with-uploading-large-video-files-io-http-error/220076/4 "2012-05-29T03:17:17Z")

</div>

Hello I solved the problem, I was using the cloudflare services and  
currently theu support only 50MB upload on their free plans.  
After I removed their services the website works again.

Regards

Posted at Nginx Forum:

> **[Re: Problem with uploading large video files - IO/HTTP error](https://forum.nginx.org/read.php?2,226854,226942#msg-226942)**
>
> Hello, I recently moved one of my projects to new server using NGINX + php-fpm .The problem is, that when I upload ~50 MB video it works well, but when I try to upload bigger file - it gives me IO or sometimes HTTP error. php.ini max\_execution\_time =...
