# Possible error in MAKE file upload module to Baserow

**URL:** https://community.baserow.io/t/possible-error-in-make-file-upload-module-to-baserow/5473
**Category:** Integrations
**Tags:** api, make
**Created:** [June 20, 2024, 11:30am UTC](https://community.baserow.io/t/possible-error-in-make-file-upload-module-to-baserow/5473 "2024-06-20T11:30:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![DataGecko](https://community.baserow.io/user_avatar/community.baserow.io/datagecko/32/2245_2.png) [@DataGecko](https://community.baserow.io/u/DataGecko)
#### Post date: [June 20, 2024, 11:30am UTC](https://community.baserow.io/t/possible-error-in-make-file-upload-module-to-baserow/5473/1 "2024-06-20T11:30:44Z")

</div>

I think there might be an error in the Baserow File Upload module on MAKE. This is what the module asks for, which is not what the online help indicates at all. 🙂 Just wanted to bring this to your attention in case something is broken. I will try to work out how to achieve the same via an API call, but… could be more challenging. lol (Trying to simply upload a jpeg into a field to provide a default image for the record. It seems like a two step process, upload the image to storage, then link the stored image to the image field in the row. Got the first bit working but not the second yet.)

 ![image](https://community.baserow.io/uploads/default/original/2X/b/b3d1f65a452052a58552134a6f2e853cb027ae00.png)

---

<div class="post-metadata">

### Author: ![frederikdc](https://community.baserow.io/user_avatar/community.baserow.io/frederikdc/32/2086_2.png) [@frederikdc](https://community.baserow.io/u/frederikdc)
#### Post date: [June 20, 2024, 2:17pm UTC](https://community.baserow.io/t/possible-error-in-make-file-upload-module-to-baserow/5473/2 "2024-06-20T14:17:24Z")

</div>

Hi,

Thank you for reporting this, I check it with the team.

Meanwhile, you can indeed use the combination of 2 API calls to upload the image:

1. Upload the file using [upload\_file](https://api.baserow.io/api/redoc/#tag/User-files/operation/upload_file) or [upload\_via\_url](https://api.baserow.io/api/redoc/#tag/User-files/operation/upload_via_url). But from what I understand, you already got this working.
2. Creating a new row using [create\_database\_table\_row](https://api.baserow.io/api/redoc/#tag/Database-table-rows/operation/create_database_table_row)

My suggestion is that you add a file manually to your File field while your browser inspector is open on the Network tab. This allows you to see what you should specify in the body in order to upload a file.

---

<div class="post-metadata">

### Author: ![DataGecko](https://community.baserow.io/user_avatar/community.baserow.io/datagecko/32/2245_2.png) [@DataGecko](https://community.baserow.io/u/DataGecko)
#### Post date: [June 21, 2024, 2:14am UTC](https://community.baserow.io/t/possible-error-in-make-file-upload-module-to-baserow/5473/3 "2024-06-21T02:14:44Z")

</div>

Thanks so much Frederik. If the file upload is working again that would be easier. 😅 I have almost got the API approach working but maybe someone can point out where I’m going wrong with the collection string to update the row. 😊 (Sorry this is why I don’t code! lol)

 ![image](https://community.baserow.io/uploads/default/original/2X/0/07b5cfcdbdf8f6c27dedb3f869d1a22e9378e473.png)  
 ![image](https://community.baserow.io/uploads/default/original/2X/b/b37d98f0b67443ed0f85acca7f0bc4d3c1558463.png)  
 ![image](https://community.baserow.io/uploads/default/original/2X/d/d7da4b088409c6ec57a667b2c6ccacb258e44d25.png)

---

<div class="post-metadata">

### Author: ![frederikdc](https://community.baserow.io/user_avatar/community.baserow.io/frederikdc/32/2086_2.png) [@frederikdc](https://community.baserow.io/u/frederikdc)
#### Post date: [June 21, 2024, 3:57am UTC](https://community.baserow.io/t/possible-error-in-make-file-upload-module-to-baserow/5473/4 "2024-06-21T03:57:20Z")

</div>

You got the first step working. The file is uploaded to the baserow servers.

But you need to pass the entire response to the field\_2271655, not just the url and a name.  
You can check this in the documentation. Field number 15 is an example of the JSON that needs to be passed to the file field: [update\_database\_table\_row](https://api.baserow.io/api/redoc/#tag/Database-table-rows/operation/update_database_table_row)

 ![image](https://community.baserow.io/uploads/default/original/2X/e/e23007ca992d159df9a56306e2e0994804aa3904.png)

So in your case this will be {“field\_2271655”:" [`14:Body`]}

---

<div class="post-metadata">

### Author: ![DataGecko](https://community.baserow.io/user_avatar/community.baserow.io/datagecko/32/2245_2.png) [@DataGecko](https://community.baserow.io/u/DataGecko)
#### Post date: [June 21, 2024, 4:53am UTC](https://community.baserow.io/t/possible-error-in-make-file-upload-module-to-baserow/5473/5 "2024-06-21T04:53:06Z")

</div>

Or the other option is to simply copy an existing image from another table’s field, that would be better actually, but… my brain can’t crack the code to make that happen either.  
 ![image](https://community.baserow.io/uploads/default/original/2X/d/d3f33bba872f1b3df39d2211322ef7d82c31e22f.png)

---

<div class="post-metadata">

### Author: ![DataGecko](https://community.baserow.io/user_avatar/community.baserow.io/datagecko/32/2245_2.png) [@DataGecko](https://community.baserow.io/u/DataGecko)
#### Post date: [June 21, 2024, 6:05am UTC](https://community.baserow.io/t/possible-error-in-make-file-upload-module-to-baserow/5473/6 "2024-06-21T06:05:40Z")

</div>

I am going to guess at this point that Make won’t let you embed a Collection directly, so I will need to read more to understand this. If it needs to be unwrapped manually, maybe I’ll wait for the file upload module to get fixed. 😅  
Tried al the variations, but same issue, so that is my current assumption. You can’t pass it a collection, it has to be fully unwrapped. Thanks for you help with this, please don’t wait time on my struggling with the basics. 👍 I will read some more.  
 ![image](https://community.baserow.io/uploads/default/original/2X/d/d8db354eabae8bbc437957862a090941e1338136.png)  
 ![image](https://community.baserow.io/uploads/default/original/2X/e/e23cd45d3a398263393913edf8a25cc0ebddcb87.png)  
 ![image](https://community.baserow.io/uploads/default/original/2X/e/e9a1850a98825c1ffc364d56bd518d1dd66cfa26.png)
