Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

Files [class]

Extends: Data

Access: protected

Members

Instance members

Name Return type Description
download(fileToDownload, pathOnDevice, [options], [trustAllHosts]) Promise Downloads a file to the device's file system. Wraps the Apache Cordova "download()" FileTransfer method. Note that the signatures of these methods differ.
download(fileToDownload, pathOnDevice, [options], [trustAllHosts], [success], [error]) Downloads a file to the device's file system. Wraps the Apache Cordova "download()" FileTransfer method. Note that the signatures of these methods differ.
getDownloadUrl(fileId) string Get the download URL for a file.
getDownloadUrlById(fileId) Promise Gets the download URL for a file by ID.
getDownloadUrlById(fileId, [success], [error]) Gets the download URL for a file by ID.
getUpdateUrl(fileId) string Get a URL that can be used as an endpoint for updating a file. It is specific to each Telerik Backend Services app.
getUploadUrl() string Get a URL that can be used as an endpoint for uploading a file. It is specific to each Telerik Backend Services app.
updateContent(fileId, file, [success], [error]) Promise Updates a file's content
upload(fileToUpload, [options], [trustAllHosts]) Promise Uploads a file from the device's file system to Backend Services. Wraps the Apache Cordova "upload()" FileTransfer method. Note that the signatures of these methods differ.
upload(fileToUpload, [options], [trustAllHosts], [success], [error]) Uploads a file from the device's file system to Backend Services. Wraps the Apache Cordova "upload()" FileTransfer method. Note that the signatures of these methods differ.
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.