how to upload video file in ios

0 votes
i want to upload video file on cloud and want to download in my app using url and play it in my app..
asked Apr 15, 2016 in iOS by pallavikale777 (10 points)
recategorized Apr 16, 2016 by shepAdmin

1 Answer

0 votes

HI,

 

You can upload a file using File Storage service of App42 SDK, please have a  look at this link for the code snippet and let me know if you require any kind of help from our side. We will be happy to help you. 

 

Regards,

Himanshu Sharma

 

answered Apr 16, 2016 by hs00105 (2,005 points)
Thanks,
i am using the same code my file get uploaded by name but its content are not
and gives exception as----

Exception = {"app42Fault":{"httpErrorCode":400,"appErrorCode":2207,"message":"BAD REQUEST","details":"Session Id not valid"}}
2016-04-16 10:13:27.397 playingvideo[659:14211] HTTP error Code = 400
2016-04-16 10:13:27.397 playingvideo[659:14211] App Error Code = 2207
2016-04-16 10:13:27.398 playingvideo[659:14211] User Info = {
    appErrorCode = 2207;
    details = "Session Id not valid";
    httpErrorCode = 400;
    message = "BAD REQUEST";
}
Hi,

Apologies for getting late back to you. The exception message "Session Id not valid" occurs when you want to upload a file using upload file function in ACL enabled app. I would like to suggest you to use uploadFIleForUser (http://api.shephertz.com/app42-docs/file-upload-service/#upload-file-for-user) function and let me know if you are able to upload a file using the session id. It will help me to provide better support to you .

P.S If you face any issue, then please share the internal logs of App42 SDK. To print the internal logs, please use below line of code just after the key initialization:
       [App42API enableApp42Trace:YES];

Thanks.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...