How do I properly configure photo file to match format of html input.files with Cordova Camera?
问题 I have an existing web service that handles user input of a photo (as well as some other number and text data). The photo is captured via the input tag: <input type="file" id="image-input-solo" accept="image/*" capture="capture" /> In the javascript I grab the image via the Files API like so: $('#image-input-solo').on('change', function() { window.__file = this.files[0]; }); // which gives me a File Object like this: File { lastModified: 1507749812264 lastModifiedDate: Wed Oct 11 2017 12:23