How do I download a folder from app server


Guest

I want my app to download a folder containing other folder and files in it to my app local storage such as resources:

App/Files/resources

If possible should download to a temp location and move it to final location and delete it from temp location.

I know this can barchieved easily with a click of a button. Will appreciate steps.

Thanks.


DecSoft

Hello Kasito,

Talking about Cordova's build applications, right now the only way to do something like you wanted is to use the Cordova's File plugin in addition to the Cordova's FileTransfer plugin. The "problem" is that right now these plugins are not included "out-of-the-box" in App Builder (we use the File plugin to support the FileRead and FileWrite actions however) and you must use it as any other non included "out-of-the-box" Cordova's plugin, that is, by directly use their Javascript APIs.

You can found various application samples that shown us how to use Cordova's plugins in our applications: SendSMS and CordovaPlugins are just a couple of them. There is a tutorial in the program's help file that talking about too. Then just go ahead and try it: if you need any further help don't hesitate to post it here or open a new forum's thread Kasito.



DecSoft

Hello to all,

Just to inform that the current release of DecSoft's App Builder added the new FileDownload action, as well the new "FileDownload" app sample. We can use this action to easily download files in both the app private storage or the user device storage.

Hope they can be useful!


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.