Parameter value in upload APIs

Hello everyone,

I have a question about “resumeAt” parameter of “uploadToken.upload” method in case of a media file is uploaded without file chunk.
In https://developer.kaltura.com/workflows/Ingest_and_Upload_Media, sample codes set the “resummeAt” to -1.
On the other hand, in https://blog.kaltura.com/api-inside-out-kaltura-architecture/ and https://github.com/kaltura/webrtc-krecord/blob/master/upload_to_kaltura.php, the sample codes set the “resumeAt” to “null”.
In the PHP and the JavaScript, “null” equals to 0.

Which value should we use for the “resumeAt”?
Or , the value of parameter is not related to the result?

Thank you in advance for your assistance.

Best regards,

Hi @t-saito,

resumeAt is only relevant in the event resume is set to true.

To be most strict, if you do not intend to upload in chunks, you best set:

$resume=false;
$finalChunk=true;
$resumeAt=-1;

Same as the defaults here:
https://developer.kaltura.com/workflows/Ingest_and_Upload_Media;step=2

See also the high level explanation above the form, which is taken from the comment here:

However, so long as $resume is not set to true, the actual value of $resumeAt does not matter much.
See:


Hello @jess,

Thank you for your kind instruction.
It was good to know the behavior of “uploadToken.upload” method.

Sincerely regards