> For the complete documentation index, see [llms.txt](https://gdplabs.gitbook.io/glchat/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gdplabs.gitbook.io/glchat/application-ui/how-to-guide/chat-configuration/upload-document-file.md).

# Upload Document / File

There are two ways of uploading a document or file:

1. **Directly in the chat box**
2. **From the Chat Control panel** on the top-right corner

### Attach File in the Chat Box

You can upload a document or file by clicking the **+** button and choose **Attach File** icon in the chat box.

<figure><img src="/files/FP1ub9imYT8Re9rAC9Dr" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Website" %}
There are two ways to add files:

1. Upload from your computer
2. Add directly from Google Drive (if your account is connected)

<figure><img src="/files/KvYoeVGeZ92ceDeZ0J6H" alt=""><figcaption></figcaption></figure>

### Upload From Computer

When you choose to upload from your computer, a window will appear where you can drag and drop your files or click **Select** to pick them manually.

You can upload up to five files at once, and each file can be up to 10 MB in size.

<figure><img src="/files/TkzN5GPbBTMW4MjPEnpM" alt=""><figcaption></figcaption></figure>

The types of files you can upload depend on both the configuration of the **Document Processing Orchestrator (DPO)** module and the **LLM you have selected**. Some examples include:

1. Image (.png, .jpg, .jpeg, .webp)
2. Spreadsheet files (.xlsx, .csv)
3. Audio files (.wav, .mp3)
4. Document files (.pdf and .docx)
5. Log or markup files (.txt, .md, and .log)
6. Source Code (.java, .py)
7. Video (supported by specific LLM such as Google's **Gemini**)

The maximum file size allowed is 10 MB per file.

### Upload From Google Drive

If you choose to add files from Google Drive, the system will prompt you to sign in and grant access the first time you use this option. After authentication, or if you have already connected your Drive before, you can immediately browse your Google Drive files and select the ones you want to attach.
{% endtab %}

{% tab title="Mobile (iOS/Android)" %}
On mobile devices:

* Tap **Files** to select and upload documents or other files from your device.
* Tap **Camera** to take a new photo and upload it.
* Tap **Photos** to choose an existing image from your gallery.

<figure><img src="/files/Hq3xcrYDo3DDbViqxFgl" alt="" width="375"><figcaption></figcaption></figure>

The types of files you can upload depend on both the configuration of the **Document Processing Orchestrator (DPO)** module and the **LLM you have selected**. Some examples include:

1. Image (.png, .jpg, .jpeg, .webp)
2. Spreadsheet files (.xlsx, .csv)
3. Audio files (.wav, .mp3)
4. Document files (.pdf and .docx)
5. Log or markup files (.txt, .md, and .log)
6. Source Code (.java, .py)
7. Video (supported by specific LLM such as Google's **Gemini**)

The maximum file size allowed is 10 MB per file.
{% endtab %}
{% endtabs %}

## Upload File from Chat Control

> Note: This feature is not available on mobile devices.

You can also attach files through the **Chat Control** panel by clicking the **Files** option in the top-right corner.

<figure><img src="/files/ZGvUHmVE3Yu48v8aBNvW" alt=""><figcaption></figcaption></figure>

This opens the file management sidebar, where you can:

* View all files you have already uploaded
* Click **Upload File** to add new files from your computer or Google Drive (the same interface as the chat box attachment)

<figure><img src="/files/Vo72RudE5kahlRTAMNRQ" alt=""><figcaption></figcaption></figure>

This method is useful if you want to upload files **before** writing your message or manage previously uploaded files in one place.

## Preview Uploaded File

Once you send a message with an attachment, you can **preview the file directly in the chat area** by clicking on the file preview.

{% tabs %}
{% tab title="Website" %}

<figure><img src="/files/oiKszi2OLzCGgtAKM3JC" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Mobile (iOS/Android)" %}
![](/files/IfRGXPTicrNkMiuBQjEP)
{% endtab %}
{% endtabs %}

After that a popup will open showing the full file content.

{% tabs %}
{% tab title="Website" %}

<figure><img src="/files/L6VzqkNfhJIYhLM1Uxy8" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Mobile (iOS/Android)" %}
![](/files/m3KJeBUJKPsIlDPNm8tF)
{% endtab %}
{% endtabs %}
