File Transfer Plugin lets you download and upload files in your mobile app. The plugin provides advanced file transfer that runs in the background, and continues even when the user closes or suspends the app.
File Transfer Plugin also has a progress update for transfers that take longer, for example video, music, and large images.
See Adding plugins to learn how to install and reference a plugin in your OutSystems apps, and how to install a sample app.
Install File Sample App from Forge and open the app in Service Studio. The sample app contains logic for common use cases, which you can examine and recreate in your apps.
The File Transfer Plugin uses a Cordova plugin, and for more information check cordova-plugin-file-transfer.
Here is the reference for the actions you can use from the File Transfer Plugin, available in Logic > Client Actions > FileTransferPlugin.
|CheckFileTransferPlugin||Checks if the device can upload and download files.|
|DownloadFile||Action to download files from the server.|
|DownloadFileWithHeaders||Action to download files from the server with HTTP headers.|
|UploadFile||Action to upload files to the server.|
|UploadFileWithHeaders||Action to upload files to the server with HTTP headers.|
Here is the reference for the events you can use from the File Transfer Plugin, available in UI Flows > FileTransferPlugin > FileTransfer.