# Form File Upload

**URL:** <https://community.tago.io/t/form-file-upload/1703>\
**Category:** Dashboards\
**Created:** [January 31, 2025, 5:10pm UTC](https://community.tago.io/t/form-file-upload/1703 "2025-01-31T17:10:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![geovane.silva](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@geovane.silva](https://community.tago.io/u/geovane.silva)\
**Post date:** [January 31, 2025, 5:10pm UTC](https://community.tago.io/t/form-file-upload/1703/1 "2025-01-31T17:10:11Z")

</div>

**Hi everyone!**

I need to send a file or image through the **Form Widget**. I noticed that the file URL appears in the `scope` metadata only when the option to send it to the bucket is enabled. Is there a way to display the URL directly, or any method to convert the file/image to send it to Tago?

Using Send to Bucket

 ![](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/2X/d/d47c2dcbad1d30d8924d91f4eaa9fe697b69836a.png)

 ![](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/2X/2/21ce1096c87551c7909fbb25dcacf11036c50957.png)

Without using the ‘Send to Bucket’ option.

 ![](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/2X/a/a544244687916fdfd2daeb6a01dbca24eefc506a.png)

---

<div class="post-metadata">

**Author:** ![mateus.silva](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@mateus.silva](https://community.tago.io/u/mateus.silva)\
**Post date:** [February 4, 2025, 1:19pm UTC](https://community.tago.io/t/form-file-upload/1703/2 "2025-02-04T13:19:10Z")

</div>

Hi Geovane,

To retrieve the file URL, enabling the Send to Bucket option is necessary, as this is what makes the URL appear in the metadata.

Could you please provide more details about your specific use case? I want to ensure I fully understand your needs. Are you looking to upload this image/file to TagoIO’s File Storage, or is there another functionality you’re trying to achieve?

---

<div class="post-metadata">

**Author:** ![geovane.silva](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@geovane.silva](https://community.tago.io/u/geovane.silva)\
**Post date:** [February 4, 2025, 5:46pm UTC](https://community.tago.io/t/form-file-upload/1703/3 "2025-02-04T17:46:42Z")

</div>

Hello, Mateus!

Actually, I don’t want to use _send to bucket_. My idea is for the user to upload the file through the form, and then I have two options:

1. I receive the file and save it in Tago.
2. Tago stores the file and returns a URL.

I prefer the first option, but the issue is that I only receive the _md5_ and _path_ in the scope. I imagine that’s not enough for me to send the file to Tago.

---

<div class="post-metadata">

**Author:** ![mateus.silva](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@mateus.silva](https://community.tago.io/u/mateus.silva)\
**Post date:** [February 6, 2025, 3:20pm UTC](https://community.tago.io/t/form-file-upload/1703/4 "2025-02-06T15:20:58Z")

</div>

Hello Geovane Silva,

When the ` **Send to Bucket** ` option is enabled, any file uploaded through the form is automatically saved in TagoIO, so no additional action is required on your part.

If you wish to show this file in a table, you can use the file’s URL for users to download it. This URL is stored in the `metadata.file.url` field of the variable. You can utilize the formula option in the widget’s settings to show this information. E.g. `$metadata.file.url$`.

For further guidance, please check the following documentation links:

- [Metadata Documentation](https://help.tago.io/portal/en/kb/articles/503-metadata)
- [Formula Documentation](https://help.tago.io/portal/en/kb/articles/225-formula)

---

<div class="post-metadata">

**Author:** ![geovane.silva](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@geovane.silva](https://community.tago.io/u/geovane.silva)\
**Post date:** [February 7, 2025, 12:48pm UTC](https://community.tago.io/t/form-file-upload/1703/5 "2025-02-07T12:48:02Z")

</div>

Hi Mateus,

Yes, I understand that. What I want is **not** to use the _ **Send To Bucket** _ option. In my understanding, it doesn’t make sense for a form with a file field to require this option to be enabled in order for Tago to receive the file. There should be a way to disable it and receive the file’s binary directly, allowing me to handle it via code in Tago or store it in a database.

With this option enabled, the process becomes more complicated because there are form fields that I process in the code before saving. If the file is sent directly to the _bucket_, I will have to delete it, process it, and send it again, which makes the workflow less efficient.

---

<div class="post-metadata">

**Author:** ![vitorfdl](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/vitorfdl/32/1728_2.png) [@vitorfdl](https://community.tago.io/u/vitorfdl)\
**Post date:** [February 11, 2025, 6:58pm UTC](https://community.tago.io/t/form-file-upload/1703/6 "2025-02-11T18:58:12Z")

</div>

Hi Geovane,

At this moment, the Send to Bucket option is required for handling files uploaded through the Form Widget. This is because the file storing mechanism on our back-end is tightly coupled with this feature

We understand that this can complicate workflows—especially when you want to process the form data before storing the file in TagoIO or another database. Unfortunately, there isn’t a current workaround to directly receive the file’s binary data from the widget without using the bucket.

I want to let you know that we are considering a future change to remove this requirement. However, even with that change, the file will still be stored in the File System to avoid the challenges associated with transmitting large file sizes through our workflow triggers to the analysis. At this point, rearchitecting this behavior is quite complex due to how we handle widget data internally.

I appreciate your patience and your feedback on this feature. If you have any more questions or need further assistance, please let me know!
