> For the complete documentation index, see [llms.txt](https://docs.zerowork.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zerowork.io/using-zerowork/using-building-blocks/upload-file.md).

# Upload File

The **Upload File** building block allows TaskBot to upload files from either a direct file URL or a local folder on your computer.

### Step 1: Trigger the Upload Action

Before using the **Upload File** building block, ensure that the upload action is initiated. Typically, you’ll need to add a building block that clicks the upload button, as shown below.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FGNV20XHKQC8VFNAQtkTm%2FScreenshot%202023-11-21%20at%2014.28.59.png?alt=media&amp;token=ff8347f8-e00a-4f9b-b997-b83e53b43ba7" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
The system dialog to select files (file chooser) **will not be visible** to you if you watch your TaskBot run. Your TaskBot will handle it 'behind the scenes'.&#x20;
{% endhint %}

***

### Step 2: Select File Source Option

Choose where TaskBot should get the file from. Select one of the following options:

1. **From file URL**\
   If you have a direct URL for the file, enter it in the provided field. This option allows TaskBot to fetch the file from an online source directly.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FCUNrmQhJTooPREI8RT3A%2FScreenshot%202024-10-29%20at%2006.42.42.png?alt=media&amp;token=ab2aca5f-97a9-48f0-8a73-6be4d84bcfcb" alt=""><figcaption></figcaption></figure>

2. **From folder path**\
   Use this option to upload a file from your local machine. Enter the full file path.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FDijQcXhdV0YCdqnuwOfr%2FScreenshot%202024-10-29%20at%2006.43.22.png?alt=media&amp;token=945a2404-be78-48c0-a6e7-4bdea2b3b579" alt=""><figcaption></figcaption></figure>

***

### FAQ

#### How do I get folder path?

Here are instructions for Mac, Windows and Linux.

1. On Mac

* Select a folder and perform a **right-click**.
* When the context menu appears, hold the **Option** key on the keyboard.
* **Copy “File-name” as Pathname** option will appear in the context menu. Click it to copy the full file path to the clipboard.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FYry2A4Y1hwQweRDiLwwD%2Fhow%20to%20find%20file%20path%20on%20Mac%20_1706535381.avif?alt=media&amp;token=14536a0d-bcf4-418e-82f7-a7198ad5136f" alt=""><figcaption></figcaption></figure>

2. On Windows

* Open **File Explorer** and navigate to the folder you want.
* Click once in the **address bar** at the top of the File Explorer window. This will show the full path as text.
* Right-click the highlighted path and select **Copy**. You can then paste this path wherever you need.

2. On Linux

* Open the file manager (e.g., Nautilus for GNOME, Dolphin for KDE).
* Navigate to the file you want to use.
* Right-click the folder, select **Properties** or **Get Info**, and copy the **Location** or **Path** shown in the details.

#### Is there a way to add the file manually?

You can add a file column or variable and upload your file to it. Select option *Upload from file URL* in the Upload File building block to reference to that file column or variable.

<figure><img src="https://3220183989-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fg9LcR8XM7TGOzOCDGsCS%2Fuploads%2FZM4xcAD3qqPsWZUqwYuf%2FScreenshot%202023-11-21%20at%2014.24.44.png?alt=media&amp;token=2d0081fa-6e5f-497e-ad8f-b687942ce591" alt=""><figcaption></figcaption></figure>
