Hi @OCX,
I’m afraid the KalturaUploadTokenService.upload() implementation for the JS client is incomplete and will not work with the current code. We intend to fix that soon but I can’t commit to an ETA.
In the meantime, however, you may want to consider using https://github.com/kaltura/kaltura-parallel-upload-resumablejs instead. This is a pure JS implementation that utilises https://github.com/23/resumable.js and does not rely on our JS client. It supports uploading several chunks in parallel for faster processing of big flies. It’s FOSS and you’re welcome to use it and make changes to it as you please.
Another alternative that you may find interesting is to use the Kaltura NodeJS client. You can see a full code sample here: