Download a file
In a Jigx you can download a file from a specific location in OneDrive to your mobile device. This is useful when your device is offline, and you want to view the document or file. Use the OneDrive Data Provider with the download method. The file is downloaded to the mobile device's storage.
Device storage location
OneDrive downloads are stored in the following location depending on the device's operating system.
Android - File apps/Internal Storage/Documents
iOS - File apps/On My iPhone/Jigx/
Properties
The following properties are required in the YAML to successfully download a file:
fileName- Add the file name with the extension, e.g. Invoice.pdfentity- file path in OneDrivetokenType- OAuth token credentials namemethod: download
Considerations
Downloading a file that already exists in the device's storage will overwrite the existing file based on the file name.
Downloading large files will impact the storage on the device.
A delay or time lag of several minutes could be experienced when files are syncing between the device and OneDrive.
Code Example
The code example below provides an example of a list of invoices in the myfiles directory of OneDrive. To download a file from the list to your mobile device, swipe left and press the Download button.
See also
Last updated
Was this helpful?