Showing posts from October, 2020

Default HTML5 camera input broken on Android / Chrome

I'm trying to create a simple web app for smartphones that lets the camera app take a picture. The standard html5 is super simple: <input type="file"        accept="image/png, image/jpeg"> So I tried this. $ cat index.html <!doctype html> <html>     <body>         <form action="/store-image/">             <label for="img">Select image:</label>             <input type="file" id="img" name="img" accept="image/*" capture="camera">             <input type="submit">         </form>     </body> </html> $ python3 -m http.server    I go to my phone. Camera pops up, I submit the picture, and ... "Unable to complete previous operation due to low memory". Ok, the simplest stock html5 sample doesn't work. Weird. I have a simple Moto G7 Play ru