> 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="/files/gxv7VGQ9D7VFHxI8EyDa" 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="/files/G58F2XnEyT1W19O1KUTR" 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="/files/Q1atigsnWQBTzZogQZBX" 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="/files/QEzIgeRteGGiNdCJ32zQ" 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="/files/Kjbe7mGXu1mv105EwmI6" alt=""><figcaption></figcaption></figure>
