I have a web app (written in PHP) which is accessed by a WebView in my B4A app.
I need the user to select a file (like PDF) from his phone and upload it to my web app via form POST as multipart/form-data.
Note that the file is outside my app's assets / internal directories.
I can't seem to make this work
I am not familiar with web sockets too.
Help please. Thanks!
I need the user to select a file (like PDF) from his phone and upload it to my web app via form POST as multipart/form-data.
Note that the file is outside my app's assets / internal directories.
I can't seem to make this work
Upload files with WebView
Code requires Android 5+ 1. Set a custom WebViewChromeClient. It is implemented with inline Java code. 2. The ShowFile_Chooser event is raised when the user clicks on a "browse" button. 3. You need to get the file URI with FileProvider and call SendResult. Example based on ContentChooser...
www.b4x.com
Help please. Thanks!