Android Question file upload in Webview..

Seung Lee

New Member
Licensed User
I searched most of community pages for 2 weeks, but I couldn't find a solution.

Is there anyone who can make file upload possible in webview?
 

Seung Lee

New Member
Licensed User
I am making a web app using my existing mobile web site.
Because I have to use the Upload File feature of my existing mobile site,
The webview or webviewexrtas function should be implemented.
 
Last edited:
Upvote 0

theunis

Member
Licensed User
I am sitting with exactly the same problem - @Erel if you say use OkHttpUtils2 you lose me completely - first time poster, bought b4x last month, using it for about 3 days so it is more treading water in order not to drown than swimming at the moment.
 
Upvote 0

theunis

Member
Licensed User
So you are dealing with servers 3 days after you started? Well... However

what do you mean? been using B4A for a couple of days does that clarify it for you? and I did go through the forum same as Seung Lee "I searched most of community pages for 2 weeks, but I couldn't find a solution.Is there anyone who can make file upload possible in webview?" It seems I'm not the only one that have the problem and cant get it to work.
 
Upvote 0

theunis

Member
Licensed User
Using OkHttpUtils2 is quite simple: [B4X] OkHttpUtils2 with Wait For
@Erel ok - on a normal website I have a form that collects X information plus the user can upload a image while adding the record - so in my webview I have the form as well where does the Okhttpustils fit into this scenario to upload the file and the file name being stored in the new record to retrieve it later? The problem is I just dont see how it is done and how the code flow is for it. A well explained example will help the 8+ people on the forum that seems to have that exact problem.

PS. I checked if I deploy as SDK version 5/19 (must check but it was there roundabout) as per another struggling user it actually works and the upload button will give you the option to get a file form device and upload it.
 
Upvote 0

theunis

Member
Licensed User
ok erel, but the sh*t hits the fan long before the actual upload / from the webview we need to be able to pick an image on the mobile (or from camera) just as HTML lets you do only then we need the upload section - it is the file pick dialog where the issue is.
 
Upvote 0
Top