1

I heard that 'Inappbrowser' doesn't support 'input type="file"' tag when connecting to an external site on Android. So I found 'inappbrowserxwalk' plugin which supports the 'input file' tag. I have embedded into my website. But, I found that it only triggered 'once'. It doesn't even returned the pictures which I selected. Is this a bug and can it be solved?

Alex Lee
  • 11
  • 2
  • Please show your code and any debug info you have. – wpclevel May 11 '16 at 01:46
  • @Alex using file plugin would be a better option – Gandhi May 14 '16 at 05:27
  • @Dan I don't have debug info because I was just translating what my friend said.... But this is what my friend sent me. – Alex Lee May 16 '16 at 07:37
  • @Dan -cordova plugin add cordova-plugin-crosswalk-webview -cordova plugin add https://github.com/Shoety/cordova-plugin-inappbrowserxwalk onDeviceReady: function() { //app.receivedEvent('deviceready'); var browser = window.inAppBrowserXwalk.open("http://plugins.krajee.com/file-basic-usage-demo", options); }, And then he excuted the 'input file tag' in http://plugins.krajee.com/file-basic-usage-demo which is build by Cordova on Andrioid mobile. – Alex Lee May 16 '16 at 07:42
  • @Dan And then he excuted the 'input file tag' in http://plugins.krajee.com/file-basic-usage-demo which is build by Cordova on Andrioid mobile. – Alex Lee May 16 '16 at 07:42
  • @Gandhi I am totally newbie here... Could you let me know more specific information? – Alex Lee May 16 '16 at 07:43
  • @AlexLee Check out this link which can help - http://stackoverflow.com/questions/27166192/html-5-file-input-with-ios-and-android-cordova-phonegap – Gandhi May 16 '16 at 07:48
  • @Gandhi Thank you for your help! – Alex Lee May 17 '16 at 00:12
  • @Alex did it work? Your problem resolved? – Gandhi May 17 '16 at 02:08
  • @Gandhi Yes! but I had to use 'iFrame' to make it work.. – Alex Lee May 19 '16 at 00:43
  • @Alex glad it worked.cheers – Gandhi May 19 '16 at 01:49
  • @axel-lee What do you mean by "Yes! but I had to use 'iFrame' to make it work? The links posted by @Gandhi makes reference to the bug within Cordova App. According to my knowledge uploading a file within Cordova works fine. The problem appears when you load an external website with a `input file` and try to upload the file there. In this case the behaviour is: First click appears file dialog but choosing file has not effect. Next clicks nothing is happening. Only works again if a full page reload is executed. So far I do not know a way to solve this. – David Clavijo Jun 27 '17 at 10:30

0 Answers0