> For the complete documentation index, see [llms.txt](https://docs.uibakery.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uibakery.io/how-tos/file-management/display-files-from-google-drive-and-dropbox.md).

# Displaying files from Google Drive and Dropbox

UI Bakery allows you to display *images* and *files* from your cloud storage, but they need to be converted first. In this article, we'll show you how you can do that on the examples of Google Drive and Dropbox. Let's dive in :point\_down:

## Displaying images from Google Drive

To use images from Google Drive in your table, you need to convert the link to them following this pattern:

```
https://drive.google.com/thumbnail?id=FILE_ID
```

Let's review the step-by-step instruction here:

1. Click **Share** next to the image you want to use in your table.
2. In the window that opens, set the access to **Anyone with the link** and copy the link.\
   \
   The link will look like this:

[`https://drive.google.com/file/d/1VmwkJGfaT5smm-dOZ-jsDZ3lH9AGxtlQ/view?usp=sharing`](https://drive.google.com/file/d/1VmwkJGfaT5smm-dOZ-jsDZ3lH9AGxtlQ/view?usp=sharing)

3. Next, copy the **file id** from the obtained link and paste it in the required pattern to get the resulting link like this:

[`https://drive.google.com/thumbnail?id=1VmwkJGfaT5smm-dOZ-jsDZ3lH9AGxtlQ`](https://drive.google.com/thumbnail?id=1VmwkJGfaT5smm-dOZ-jsDZ3lH9AGxtlQ)

4. In the Table component, add the link from step 3 to the necessary field.
5. Now, change the field type from **Link** to **Image**.

{% hint style="info" %}
This is necessary to display the final image since a link is recognized by the system as a *Link field type*.
{% endhint %}

That's it! Your image should now be displayed in the Table.

{% @arcade/embed flowId="98CJeEirBVKPWLRaFRZT" url="<https://app.arcade.software/share/98CJeEirBVKPWLRaFRZT>" %}

Since the final image is a thumbnail with the default resolution of around *200 px*, you can also add `&sz=w###-h###` at the end of the link, replacing the hashtags with the **width** and **height** you need. So, your resulting link will look like this:

[`https://drive.google.com/thumbnail?id=1VmwkJGfaT5smm-dOZ-jsDZ3lH9AGxtlQ&sz=w1280-h994`](https://drive.google.com/thumbnail?id=1VmwkJGfaT5smm-dOZ-jsDZ3lH9AGxtlQ\&sz=w1280-h994)

## Displaying PDF files from Google Drive

To display PDF files from Google Drive, you need to convert the link to them following this pattern:

```
https://drive.google.com/uc?id=FILE_ID
```

Let's review the step-by-step instruction how to do that:

1. Click **Share** next to the file you want to use in your table.
2. In the window that opens, set the access to **Anyone with the link** and copy the link.\
   \
   The link will look like this:

[`https://drive.google.com/file/d/1F9NCSMf7MUMdT6aALelPtil3er4LYdub/view?usp=sharing`](https://drive.google.com/file/d/1F9NCSMf7MUMdT6aALelPtil3er4LYdub/view?usp=sharing)

3. Next, copy the **file id** from the obtained link and paste it in the required pattern to get the resulting link like this:

[`https://drive.google.com/uc?id=1F9NCSMf7MUMdT6aALelPtil3er4LYdub`](https://drive.google.com/uc?id=1F9NCSMf7MUMdT6aALelPtil3er4LYdub)

4. Now, in the app create a new action of the **HTTP request** type, select *GET* method, and specify the link from step 3 in the *URL* field.
5. Here in the action, turn on the **Transfrom result** toggle, modify action result with `return {{data.base64}}`, and execute the action.
6. Next, add the **PDF Viewer** component to your working area and assign the newly created action to it.

Done! Now you can display the PDF file in your application.

{% @arcade/embed flowId="h4OEtBtIGpLuRhHySqD3" url="<https://app.arcade.software/share/h4OEtBtIGpLuRhHySqD3>" %}

## Displaying PDF files from Dropbox

In order to display PDF files from Dropbox, you also need to modify their links. Check out the step-by-step instruction below:point\_down:

1. Click **Share** next to the file you want to display and copy its link.\
   The link will look like this:\
   \
   [`https://www.dropbox.com/scl/fi/2hhw9gk99dhp3vqrqqhpc/Sample.pdf?rlkey=icwx5vl2scyh2t9vq0lw1ztbi&st=9skj0sm0&dl=0`](https://www.dl.dropboxusercontent.com/scl/fi/2hhw9gk99dhp3vqrqqhpc/Sample.pdf?rlkey=icwx5vl2scyh2t9vq0lw1ztbi\&st=9skj0sm0\&dl=0)
2. Now, replace <mark style="color:blue;">dropbox.com</mark> with <mark style="color:blue;">dl.dropboxusercontent.com</mark> to get the resulting link like this:\
   \
   [`https://www.dl.dropboxusercontent.com/scl/fi/2hhw9gk99dhp3vqrqqhpc/Sample.pdf?rlkey=icwx5vl2scyh2t9vq0lw1ztbi&st=9skj0sm0&dl=0`](https://www.dl.dropboxusercontent.com/scl/fi/2hhw9gk99dhp3vqrqqhpc/Sample.pdf?rlkey=icwx5vl2scyh2t9vq0lw1ztbi\&st=9skj0sm0\&dl=0)
3. Add the **PDF Viewer** component to the working area and copy the resulting link in the component's **Link to PDF** field.

{% @arcade/embed flowId="FS9yU7A5gV1Ora0hzW1w" url="<https://app.arcade.software/share/FS9yU7A5gV1Ora0hzW1w>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uibakery.io/how-tos/file-management/display-files-from-google-drive-and-dropbox.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
