php - Cordova image upload -


i'm trying find out how upload files php server using cordova plugins shown in url below https://www.youtube.com/watch?v=jc8djihwy_k

i know cordova-plugin-intent has functionality receiving image selecting "share via/open with" option , url of file

function deviceready() { console.log("device ready"); window.plugins.webintent.geturi(function(url) { if(url !== "") { // url url intent launched document.queryselector("#test").innerhtml = "url "+url; } }); } 

and cordova-plugin-file-transfer has functionality transfer selected file server.

function uploadphoto(imageuri) { var options = new fileuploadoptions(); options.filekey="file"; options.filename=imageuri.substr(imageuri.lastindexof('/')+1); options.mimetype="image/jpeg"; } 

the problem cordova-plugin-file-transfer have select file via file opener/file dialog, need know how combine cordova-plugin-intent image , send file using cordova-plugin-file-transfer server without having select image file dialog, appreciate help.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -