How to know when an upload is done?

Posted by mr1031011 on Stack Overflow See other posts from Stack Overflow or by mr1031011
Published on 2014-08-22T11:37:36Z Indexed on 2014/08/23 10:21 UTC
Read the original article Hit count: 140

Filed under:

I'm using Guzzle 4 (latest version) to upload file to a remote server, since it uses stream to upload the $response->getStatusCode() will be 100 which means "Continue" and the responseBody is not available at this point.

Is there a way to catch the remote server response when the upload is done?


Edit 1:

I was able to call back to a function when the upload is done using this: https://github.com/guzzle/progress-subscriber

However, I haven't found out how to get the response yet

© Stack Overflow or respective owner

Related posts about guzzle