Uploading data from remote server to kaltura


#1

Hello,

I am trying to upload an mp4 file from a remote server to kaltura in order to provision it as an asset.

What i am trying to do is play around with the test_upload php script:

hp upload_test.php http://…com 101 ***** test.mp4
PHP Fatal error: Uncaught exception ‘KalturaException’ with message ‘Error while starting session for partner [101]’ in /opt/kaltura/web/content/clientlibs/php5/KalturaClientBase.php:894
Stack trace:
#0 /opt/kaltura/web/content/clientlibs/php5/KalturaClient.php(6877): KalturaClientBase->throwExceptionIfError(Array)
#1 /opt/kaltura/bin/create_session.php(8): KalturaSessionService->start(’*****’, NULL, 0, ‘101’, NULL, NULL)
#2 /opt/kaltura/bin/upload_test.php(44): generate_ks(‘http://…’, ‘101’, ‘****’, 0, NULL)
#3 {main}
thrown in /opt/kaltura/web/content/clientlibs/php5/KalturaClientBase.php on line 894

Can you please advise what is the best way to tackle this task?

Any documentation would be helpful

Thank you


#2

Hi @OCX,

/opt/kaltura/bin/upload_test.php expects you to pass the user secret, not admin, perhaps you’re passing the wrong secret?
To get the secret for partner ID 101, either go to KMC->Settings->Integration Settings->User Secret or:

mysql> select secret from kaltura.partner where id=101;

This tutorial may also interest you:
https://developer.kaltura.com/workflows/Ingest_and_Upload_Media;step=intro