Uploading Files

Uploading Files

Using the Backend Services iOS SDK you can call a method to upload a file to Telerik Platform. Files are stored in the cloud and delivered for download through a CDN.

To upload a file, you have to execute the following code:

NSString* fileName = @"example.txt";
NSString* str = @"Telerik Platform portal";
NSData* data = [str dataUsingEncoding:NSUTF8StringEncoding];

EVFile *file = [EVFile fileWithName:fileName data:data contentType:nil];
[file save:^(BOOL success, NSError *error) {
    STAssertTrue(success, @"File upload failed.");
}];

Limitations

If the upload request does not complete within 10 minutes, it will time out.

Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.