Uploading Files

Uploading Files

You can call a Java 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 snippet:

import com.telerik.everlive.sdk.core.query.definition.FileField;

public void UploadFile(EverliveApp app, String fileName, String contentType, InputStream inputStream) {
    FileField fileField = new FileField(fileName, contentType, inputStream);
    app.workWith().files().upload(fileField).executeSync();
}

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.