capture

The capture property of the HTMLInputElement interface reflects the element's capture attribute. Only relevant to the of type file, the property and attribute specify whether, a new file should be captured from a user-facing (user) or outward facing (environment) camera or microphone. The type of file is defined the accept attribute. If the attribute is not explicitly set, the capture property is an empty string.

MDN Reference