API Support Resumable js uploads

We’re trying to implement the resumable file uploads. We are already a saas customer. Under 2GB will work fine, but if you go to 2.1 GB it’s always the following error: {“code”:“UPLOAD_TOKEN_INVALID_STATUS_FOR_ADD_ENTRY”,“message”:“Upload token is in an invalid status for adding entry, maybe the a file was not uploaded or the token was used”,“objectType”:“KalturaAPIException”,“args”:[]}.

Any direction would be appreciated.

Hello @jcbtrb,

I believe your issue may stem from the fact that the final chunk arrives at the Kaltura server before all the others were processed.
As noted here https://developer.kaltura.com/api-docs/service/uploadToken/action/upload:

  1. After all of the chunks have been uploaded a final chunk (can be of zero size) should be uploaded with finalChunk=true.

Please also see:
https://github.com/kaltura/kaltura-parallel-upload-resumablejs (JS implementation)
https://github.com/kaltura/kaltura-chunked-upload-test (Java implementation)