mgks / Android-SmartWebView

A simple use webview integrated w/ native features to help create most advanced hybrid applications.
https://mgks.dev/smart-webview
MIT License
570 stars 278 forks source link

Cannot upload photo taken by camera (no photo data) #207

Open SNSW-Project opened 3 years ago

SNSW-Project commented 3 years ago

First of all I would like to say this is an awesome project.

Now the issue:

When clicking the html form File Input with code: I get the dialog "Camera" and "Gallery" as options. Selecting from Gallery works fine. However if I select "Camera", it opens the Camera app and I can take a photo from the rear camera which is great - however - once I take the photo and click ok, going back to the Webview, there is no file data that I can preview via Javascript and upload to server. The empty file is in the form, and I can upload it, but result is a 0 byte empty file. I've tried everything and would really love to have this feature. Any chance you could fix it? Been testing on Galaxy S20+ but would like this to work on all devices if possible.

Device (please complete the following information):

Thanks in advance!

mtreilly commented 3 years ago

Did you have any luck with this issue, if so, what was your solution? I'm having the same problem too

mgks commented 3 years ago

@mtreilly are you using the latest repo update? the last release might not work.

mtreilly commented 3 years ago

I'm using the latest one, but I have made some modifications, I can try with the plain empty project to double-check. Or is your suggestion to use the previous one?

Also thanks for the response, no worries if we can't track it down, know-how dependent these things can be on devices

mgks commented 3 years ago

sorry man for responding so late, you're right, these things are highly dependent on individual devices and very hard to track what works for what device. but I will look into this bug in coming update.

mtreilly commented 3 years ago

Apperciate response regardless, no apology needed. I understand its a project on your own time after all. Even if don't discover the exact fix, let me know what you uncover. I might be able to help you at leat

bishu commented 3 years ago

Photo Upload from Camera and File is not working with the latest version. Is there any update now.

kadircakir1989 commented 3 years ago

Any update? I cannot use upload form...