Sometimes, working with only the local system for mobile applications is not enough. There are use cases for the requirement to interact with a remote server, for example, to share a file.
In this recipe, we will build an application that allows the user to take a photograph and upload it on a remote server:
uploadby running the following line:
phonegap create upload com.myapp.upload upload
cordova platform add ios cordova platform add android
file-transferplugins by running these lines of code:
phonegap plugin add org.apache.cordova.file phonegap plugin ...