Download a file

You can download a file from  a remote server..

Method summary

cfclient.file.download(url,localFilePath,successCallback, errorCallback,[options])

  • returns - FileEntry object
  • params
    • url - The remote server URL (CFM page)
    • localFilePath – Absolute or relative path of a file name (including file name)
    • successCallback - The function to be invoked upon success/completion
    • errorCallback - The function to be invoked if there is a file transfer error
    • options object (see below for the supported options)

Options object

Optional parameters, currently only supports headers (such as Authorization (Basic Authentication), etc).

Example 

See Getting Started Examples

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy