Thanks to the ability to traverse, read, and write to the device filesystem, an application can write a file to either a specific, predefined location or a location chosen by the user within the application.
We will allow the user to enter a remote URL for a file in a textbox to download and save that file in their mobile device:
storageby running the following line:
phonegap create storage com.myapp.storage storage
cordova platform add ios cordova platform add android
file-transferplugins by running this line:
phonegap plugin add org.apache.cordova.file phonegap ...