Polyfill file input with accept capture (using getUserMedia to capture?)
I want to enable image (& audio & video) uploads in a survey framework. To do so, input file is nearly sufficient for my purposes. On some mobile browsers <input type="file" accept="image/*;capture=camera"> is a really simple way of letting users choose to upload an existing image or to take a new one. Of course the UI for viewing and choosing among the pictures is provided too. Desktop browsers did not go this route. Instead, some pretty nice stuff seems to be possible using getUserMedia() . I did not find any working examples that upload the collected user-media to the server (e.g. I found