# HTML Media Capture - Upload Approach

### Explanation on HTML Media Capture - Upload Approach

Adding the capture attribute without a value let's the browser decide which camera to use, while the "**user**" and "**environment**" values tell the browser to prefer the front and rear cameras, respectively.

Android users will no longer have the option of choosing an existing picture. The system camera app will be started directly.

{% hint style="warning" %}
The capture attribute works on Android and iOS, but is ignored on desktop.
{% endhint %}

### Image Capture Code Block Examples

```
<input type="file" accept="image/*" capture>
<input type="file" accept="image/*" capture="user">
<input type="file" accept="image/*" capture="environment">
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api-old.innov8tif.com/other/okayid-web-camera/html-media-capture-upload-approach.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
