Reputation: 959
I am developing an Ionic hybrid app and one of the features is taking/choosing a picture and uploading it to the server. I found plenty of examples of how to use $cordovaFileTransfer plugin. The problem is that my backend is in Django and I don't really understand how to process the upload request from the cordova plugin. Any help or a small example would be appreciated. Thank you.
Upvotes: 2
Views: 984
Reputation: 16324
$cordovaFileTransfer
is only the Ionic wrapper for the cordova file transfer plugin. The documentation says:
The FileTransfer object provides a way to upload files using an HTTP multi-part POST or PUT request, and to download files as well.
Since these are simple http POST requests, you don't need nothing special but only the Django file uploads documentation that contains a well documented example.
Upvotes: 1