Skip to content
Advertisement

Upload data to Apache server keep failing if uploading lasts more than 20 sec

I have a website where users can upload images to my hosting Apache/PHP server. If files uploading lasts less than 20 sec everything is fine. But if it lasts more (no matter what image filesize is), upload fails.

In .htaccess I already have:

JavaScript

And in php script, returng result of:

JavaScript

is as excepted:

JavaScript

These are requests – all failed after 22sec with error net::ERR_SPDY_PROTOCOL_ERROR (in firefox they fail after 20sec)

https://cdn1.imggmi.com/uploads/2019/5/8/fadd31a1a22674cfc3cc4603c97762ff-full.jpg

console log

What I am missing here??? Once again, if uploading duration is less than 20 sec – everything is fine…

Advertisement

Answer

It was server problem due shared hosting and I had to contact hosting support…eventually they did some server reconfig and now upload does not break so early…thanks to @m908070 cheers

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement