Very new to using Kaltura, I’m following the Console API/Tutorial and I stuck when attempting to call the function KalturaUploadService.upload(). The Chrome browser/debugger is telling me "xxx.upload is not a function. When I look at the source code there is only one method on that object, it’s named ‘getUploadedFileTokenByFileName’.
The problem is that there isn’t a function named ‘upload’ on the KalturaUploadTokenService variable. I downloaded the source/library code from here: http://cdnbakmi.kaltura.com/content/clientlibs/ajax_22-03-2017.tar.gz. If you download the source and expand it you’ll find that the file KalturaUploadTokenService.js file doesn’t have the ‘upload’ function defined.
I’m afraid this was never implemented in the JS/AJAX client.
We put it on our TODO list but there’s no ETA at the moment.
In the meantime, if you’re most comfortable with JS, you may want to consider using the NodeJS client for this, where this functionality is implemented.
You can obtain the client from here: http://cdnbakmi.kaltura.com/content/clientlibs/node_22-03-2017.tar.gz