# Media

{% hint style="info" %}
The maximum file size for uploading media is **50 MB**.
{% endhint %}

## Supported Files

| Platform | Supported File Types     |
| -------- | ------------------------ |
| Android  | All file types           |
| iOS      | PNG, JPEG, JPG, GIF, MP4 |

{% hint style="warning" %}
Files outside of these formats will not be processed on iOS simulators.
{% endhint %}

## With App Page

The [App Page](https://docs.appetize.io/platform/app-management/running-apps#accessing-your-app-page) provides an **Upload File** button on the device toolbar during active sessions, allowing you to upload media files directly to the device’s photo library.

<figure><img src="https://2147444700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJUveBCJfn0GR8-hlqi%2Fuploads%2FJXCD2FYyD1v80KHkRLzq%2FScreenshot%202025-03-21%20114500.png?alt=media&#x26;token=3cc2230d-34ab-455c-833f-65bf47be92a1" alt=""><figcaption><p>"Upload File" button during active sessions</p></figcaption></figure>

## With JavaScript SDK

Appetize’s [JavaScript SDK](https://docs.appetize.io/javascript-sdk) offers a convenient [addMedia](https://docs.appetize.io/javascript-sdk/api-reference#addmedia-file) function for adding media files directly to your active simulator sessions. This function is ideal for automating media uploads as part of your testing or development workflows.

```typescript
await session.addMedia(file)
```


---

# 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://docs.appetize.io/features/media.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.
