Open hugomosh opened 9 years ago
@hugomosh we are using the same thing you have here, but with PHP 7, and we are seeing very weird things.
We have nginx in front of our php, using php-fpm, but we noticed that it has to retry a lot of chunks several times before uploading the files... after hours of debugging and testing, we found that if we add a sleep(2);
it just works... so, we were wondering, have you experience the same thing? Do you have any clue of what could be the problem?
@citosid sorry, I don't longer work in the project where I used it.
Thanks @hugomosh... it turned out to be a problem with fpm and permissions... after setting the permissions of the folders you need to restart fpm, otherwise it will not work.
This is a nasty code but It work for me for an AngularJs and Laravel 5 integration. I am just happy and want to share it for sme. It is a copy from one post here but modified.