The same file input behaves differently depending on its accept, capture and multiple attributes. Every form below posts to the same /media/upload endpoint.

Camera (photo)

capture opens the camera directly: environment uses the rear camera, user the front one.

Gallery

Without capture the browser opens the system picker. multiple selects several images at once.

Camera or Gallery

Without capture, Android and iOS let the user choose between taking a photo or picking from the gallery.

Video

capture="environment" records directly; without it the user can record or pick an existing video.