flowjs / flow-php-server

flow.js php server library, validates uploaded chunks and safely merges all chunks to a single file
http://flowjs.github.io/ng-flow/
MIT License
245 stars 42 forks source link

Timeout (504) #50

Open mrmscmike opened 1 year ago

mrmscmike commented 1 year ago

When I upload a large file (e.g. 1.4 GB), I get a timeout (http 504) on one of the (post) requests. The file is completely uploaded and merged. However, the client does not know about it. On the client side, the transfer information ends with: progress:1, error:true, success: false, complete:true. The request is waiting for the response from the server. Maybe I can solve the problem by increasing some timeouts on the server side. However, I have already tried a lot without success. Would it be possible to flush something like a status from time to time on php side so that I don't run into the timeout?

Thanks for any advice.

AidasK commented 1 year ago

If merging takes more than 30 seconds, you should move it out to a background job so that http request could respond immediately with 200