Downloading Files

Hi guys,

I am trying to let the user of the app download a file. Currently I need to use ‘system.openURL()’ which will leave the app and open up the device browser to download the file.

Is there a way to download the file straight into the device ‘Downloads’ folder (like google-drive) without leaving the app ?

You can take a look at network.download() and “Reading and Writing Files” guide.

it is not in system. files directory. This is outside it, on the device folder (e.g. DCIM, Downloads, etc).

I don’t know if there is any other way but you may try to start the download from a native web view. That could do the trick.