Thanks, yes the workflow interactive tutorial works fine for me if I put in all the info there and try to follow along.
With the Jquery chunked library, it only gets you through the first few steps in that workflow and then it prints out to the screen that you need to finish by doing the final two steps. I’ve tried doing those two steps in multiple ways (one in javascript using the Kaltura JS API client and one in PHP using the Kaltura PHP API client). I can’t seem to get either to properly do the media.add or media.addContent.
I then decided to try to not even use the jQuery chunked library and just try to follow along the workflow and use the PHP API for everything and I can get the token created and then when I attempt to attach the file to the token I get the error “Upload failed”. I’m not sure if it is not liking the format of the file, as it doesn’t document very well what format the function in the API is expecting the file to be. I’ve tried passing a string of the name, the full path to the file, an actual stream with the file contents and they all give me that same error.
I know that this step works as I’m getting a valid value for the TokenId:
$result = $client->uploadToken->add($uploadToken);
$uploadTokenId = $result->id;
But then I attempt to get the file from the html form input and do this and this is when it fails:
$resume = false;
$finalChunk = true;
$resumeAt = -1;
$result = $client->uploadToken->upload($uploadTokenId, $fileData, $resume, $finalChunk, $resumeAt);
Thanks for sending the resumablejs Kaltura link, I’ll take a look at that one and see if that would work for me instead of these two ways I’ve tried.