←back to thread

25 points painternishant | 1 comments | | HN request time: 0.198s | source

What we built

React Web Camera is a lightweight, reusable React component that allows users to capture multiple photos in one camera session, in-browser. It works across standard web apps, responsive UIs, and Progressive Web Apps (PWAs)—unlocking a smoother experience than the default <input type="file" capture> element.

The problem

On mobile (and increasingly on desktops), using: <input type="file" accept="image/*" capture="environment"> only allows taking one picture before the camera closes. Want to add more? You have to reopen it each time.

How React Web Camera solves it

Opens the camera inline in-browser, Lets the user capture multiple photos in one go, Allows previewing captured photos, removing unwanted ones, and submitting everything in a batch, Fully client-side, respects user privacy, Supported across web, responsive UIs, and installable PWAs.

Show context
spankalee ◴[] No.45041529[source]
This would be great as a web component for non-React developers. It could even work in plain HTML by generating a series of inputs for the form.
replies(1): >>45048898 #
1. painternishant ◴[] No.45048898[source]
Yes, true.