Android-SmartWebView icon indicating copy to clipboard operation
Android-SmartWebView copied to clipboard

Cannot upload photo taken by camera (no photo data)

Open SNSW-Project opened this issue 4 years ago • 7 comments

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):

  • Samsung Galaxy S20+
  • ARM x86
  • Android Version API 30

Thanks in advance!

SNSW-Project avatar Jan 08 '21 03:01 SNSW-Project

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

mtreilly avatar Mar 24 '21 14:03 mtreilly

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

mgks avatar Mar 29 '21 05:03 mgks

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

mtreilly avatar Mar 29 '21 08:03 mtreilly

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.

mgks avatar Sep 20 '21 07:09 mgks

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

mtreilly avatar Sep 20 '21 08:09 mtreilly

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

bishu avatar Nov 21 '21 13:11 bishu

Any update? I cannot use upload form...

kadircakir1989 avatar Nov 25 '21 05:11 kadircakir1989