File upload in web view?

I have a webview that shows a leaderboard. Inside there the user can upload a thumbnail image. It works fine in the browser on my phone but in the webview it wont open the file upload piece of the page. Are file uploads allowed in the webview? 

I’m wondering if it’s even possible to upload a file while inside of the corona webview? I removed everything except my <input type=“file” /> tag that works eveywhere else except inside the webview.

Where is the image coming from?

The image would come from the user. When I click on the file upload in the browser it opens my gallery. When I click on it in the webview nothing happens at all.

So it works just fine on iOS it’s an android only issue. 

The browser would be opening the camera’s photo album.  You would do that with Corona SDK with media.selectPhoto to get the photo copied into your sandbox.  However, I don’t know if webViews can access files in the sandbox or not.

Rob

I’m wondering if it’s even possible to upload a file while inside of the corona webview? I removed everything except my <input type=“file” /> tag that works eveywhere else except inside the webview.

Where is the image coming from?

The image would come from the user. When I click on the file upload in the browser it opens my gallery. When I click on it in the webview nothing happens at all.

So it works just fine on iOS it’s an android only issue. 

The browser would be opening the camera’s photo album.  You would do that with Corona SDK with media.selectPhoto to get the photo copied into your sandbox.  However, I don’t know if webViews can access files in the sandbox or not.

Rob

Did anyone come up with a way to do this in webview? This is an important feature to a lot of users

+1

our many apps need this .

Did anyone come up with a way to do this in webview? This is an important feature to a lot of users

+1

our many apps need this .

any solution for this? I also have a website which show in webview have <input type=“file” />. It works on iOS but it is not working on Android.  

any solution for this? I also have a website which show in webview have <input type=“file” />. It works on iOS but it is not working on Android.  

Hi Rob,

Any update about this?

Usman

For us to consider things, you need to create a feature request at http://feedback.coronalabs.com and vote for it. Then get others to vote for it. If it gets enough votes and if it’s possible, we can consider it.

Rob

This isn’t really a feature, it’s more of an android bug. The html file upload works just fine in a webview on iOS but not on android.