Thanks, I’ve got it saving the file onto disk from the form and verified the file does in fact exist and has content. But I’m still getting the error at the uploadToken->upload().
Here is what I have as part of my code for that section currently:
try {
$tempFileDir = “/tmp”;
$target_file = $tempFileDir . “/” . $_FILES[“asset_file”][“name”];
move_uploaded_file($_FILES[“asset_file”][“tmp_name”], $target_file);
$fileData = $target_file;
$result = $client->uploadToken->upload($uploadTokenId, $fileData, $resume, $finalChunk, $resumeAt);
} catch (Exception $e) {
echo $e->getMessage();
var_dump($e->getTrace());
}
Below is what is displayed from the catch (removed/updated some values for security reasons):
Upload failed
array(6) { [0]=> array(6) { [“file”]=> string(72) “/fullpath/Kaltura/KalturaClient.php” [“line”]=> int(3750) [“function”]=> string(21) “throwExceptionIfError” [“class”]=> string(17) “KalturaClientBase” [“type”]=> string(2) “->” [“args”]=> array(1) { [0]=> array(4) { [“code”]=> string(12) “UPLOAD_ERROR” [“message”]=> string(13) “Upload failed” [“objectType”]=> string(19) “KalturaAPIException” [“args”]=> array(0) { } } } } [1]=> array(6) { [“file”]=> string(73) “/pathtoscript.php” [“line”]=> int(133) [“function”]=> string(6) “upload” [“class”]=> string(25) “KalturaUploadTokenService” [“type”]=> string(2) “->” [“args”]=> array(5) { [0]=> string(34) “tokenIdNumber” [1]=> string(31) “/tmp/Kaltura_Logo_Animation.flv” [2]=> bool(false) [3]=> bool(true) [4]=> int(-1) } } [2]=> array(6) { [“file”]=> string(79) “/pathToFrameworkScript.php” [“line”]=> int(55) [“function”]=> string(6) “Action” [“class”]=> string(9) “ActionName” [“type”]=> string(2) “->” [“args”]=> array(0) { } } [3]=> array(6) { [“file”]=> string(67) “/Controller.php” [“line”]=> int(35) [“function”]=> string(13) “functionName” [“class”]=> string(13) “className” [“type”]=> string(2) “->” [“args”]=> array(1) { [0]=> &NULL } } [4]=> array(6) { [“file”]=> string(81) “/PathToController.php” [“line”]=> int(55) [“function”]=> string(10) “Controller” [“class”]=> string(10) “Controller” [“type”]=> string(2) “->” [“args”]=> array(0) { } } [5]=> array(6) { [“file”]=> string(39) “/pathto/index.php” [“line”]=> int(13) [“function”]=> string(15) “functionName” [“class”]=> string(15) “className” [“type”]=> string(2) “->” [“args”]=> array(0) { } } }