Is it possible to get progress status, when upload large files to cloudinary from my server?
The problem:
We have an api endpoint, where we are sending the file to our server, then our server is doing some checks and is sending it to cloudinary. I am trying to find a way of showing the correct progress status. What I have tried is:
$stream = file_get_contents('php://input');
try{
$resource = \Cloudinary\Uploader::upload($stream);
$this->_resource = $resource;
} catch( Exception $exp ){
echo "<pre>".print_r($exp)."</pre>";
return false;
}
but this throws cloudinary exception that the file cannot be read.