Wednesday, March 29, 2017

Laravel File Upload hangs on exactly 29-30 seconds

I am trying to upload a video of 150mb and then storing it into Laravel Storage.

However when uploading it, the uploading process stops at exactly 30 seconds Socket: Broken pipe (Write failed).

This issue persists only when my website is on live environment, on local environment I don't have this issue.

I've tried setting diverse php.ini settings like:

upload_max_filesize = 16000M
post_max_size = 16400M
output_buffering = 0
max_input_time = 7200
memory_limit = 1024M

However none of them help.

Could it be, that the error is coming from Laravel Configurations or did someone have similar experience?

EDIT

I am using PHP-7, Laravel 5.4 and Centos 7 + Plesk



via PHP Lover

Advertisement