I'm a standard Vaadin 14 dev from Swing who's weak on HTML/Javascript.
I'm sure for anyone with Vaadin & HTML/JS skills this would be easy.
Our program is 95% desktop focused, but can also upload images from their phone's library. Easy and useful.
Today I found the following html to actually open phone camera:
<input type="file" id="user" capture="user" accept="image/*">
It seems to work on Android and iPhone. This is brilliant.
How can I import these files back to the Vaadin 14 server?
In pure Vaadin I have uploaded files from phones using Vaadin's own MultiFileBuffer etc, but not via Html/js.
Can anyone point me in the right direction? (especially considering my html/js is weak)
PS This is where the camera idea came from ... https://dzone.com/articles/til-you-can-access-a-users-camera-with-just-html
PPS. There is a perfect answer but it is 8 years old and for polymer, so I could not identify a V14 answer.
Any help appreciated.