Android Question WebViewExtras (File Upload to Php)

domz

Member
The code source below is originated in this site furom..
I change the source to my created Php File to Move Uploaded Photo To A Folder (pc localhost with xampp)
source: 192.168.254.147 - my pc ip address

My problem when compile the code (see pic) ..I got an error which I think EventName As String is not indicated
...But As I change it... The Code compiles

The problem is .. If I clicked the "choose File button" no file chooser opens
But when I manually visit php file from 192.168.254.147 USING chrome browser(android)..
I can choose and upload with NO Error.

I'm a beginner..Can Someone tells me the problem?
 

Attachments

  • Capture.PNG
    40.8 KB · Views: 266

josejad

Expert
Licensed User
Longtime User
The code source below is originated in this site furom..

Hi:

Where did you get the example? In order to test it.


My problem when compile the code (see pic) ..I got an error which I think EventName As String is not indicated

When you start typing, you get the help with the parameters you need.
As you can see, addWebChromeClient needs two parameters.
It should be
B4X:
WebViewExtras1.addWebChromeClient(WebView1, "WebView1") 'for example

 
Last edited:
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Your error clearly says a description is expected which is obviously a parameter of some sort. In your error line where is says WebView1, try the following.
Change
B4X:
WebView1
to
B4X:
WebView1, Null
or to
B4X:
WebView1, ""

Basically try adding a parameter. I don't use WebViewExtras, this is just an attempted logical guess from myself
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…