# \[SOLVED 2/1/24 4:59 AM EDT\] Airtable error "Invalid attachment for field xxx: parameters must be objects, not strings”

**URL:** <https://community.thunkable.com/t/solved-2-1-24-4-59-am-edt-airtable-error-invalid-attachment-for-field-xxx-parameters-must-be-objects-not-strings/2813176>\
**Category:** Questions about Thunkable X\
**Created:** [January 31, 2024, 4:12pm UTC](https://community.thunkable.com/t/solved-2-1-24-4-59-am-edt-airtable-error-invalid-attachment-for-field-xxx-parameters-must-be-objects-not-strings/2813176 "2024-01-31T16:12:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gm.cellinig8f](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gm.cellinig8f/32/163435_2.png) [@gm.cellinig8f](https://community.thunkable.com/u/gm.cellinig8f)\
**Post date:** [January 31, 2024, 4:12pm UTC](https://community.thunkable.com/t/solved-2-1-24-4-59-am-edt-airtable-error-invalid-attachment-for-field-xxx-parameters-must-be-objects-not-strings/2813176/1 "2024-01-31T16:12:24Z")

</div>

I creates an “attachment” field in a table where I wanted it to store pictures:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/8/a85ab03b3fc060098c258a6f2757f87d950f60bb.png)

then in the blocks I take a picture and I want to store it in the “atlFotoQui” field:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/0/106ce9c556062f5da51be7fce93800b4ed237862.png)

But when I try to write the record I get this error from Airtable:

> {“error”:{“type”:“INVALID\_ATTACHMENT\_OBJECT”,“message”:“Invalid attachment for field atlFotoQui: parameters must be objects, not strings”}}

Where is my error please?  
Grazie

---

<div class="post-metadata">

**Author:** ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)\
**Post date:** [January 31, 2024, 8:03pm UTC](https://community.thunkable.com/t/solved-2-1-24-4-59-am-edt-airtable-error-invalid-attachment-for-field-xxx-parameters-must-be-objects-not-strings/2813176/2 "2024-01-31T20:03:43Z")

</div>

I’m sure there is a quicker way to do it, but that’s my viable solution.

First of all it appears that it’s not very easy to upload an attachment on Airtable (look [here](https://community.airtable.com/t5/automations/upload-file-to-airtable-using-api/td-p/131183), [here](https://community.airtable.com/t5/development-apis/attachment-uploaded-via-api-doesn-t-work/td-p/50261) and [here](https://community.airtable.com/t5/development-apis/url-to-attachment/td-p/107993))

The easiest solution would be using an external component, something like Media DB or Cloudinary. I’m pretty sure there is a MEdia DB component still in the snap to place interface that can be used to instantly convert Attachments to URLs to be stored easily.

Also, but i might be wrong, i recall a post on Airtable that was deprecating the use of Attachments for security reasons. But again, i might be wrong so ignore this message.

Hope it helps

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 31, 2024, 9:43pm UTC](https://community.thunkable.com/t/solved-2-1-24-4-59-am-edt-airtable-error-invalid-attachment-for-field-xxx-parameters-must-be-objects-not-strings/2813176/3 "2024-01-31T21:43:13Z")

</div>

> [@maurizio.polverini89](#):
>
> Also, but i might be wrong, i recall a post on Airtable that was deprecating the use of Attachments for security reasons.

Yes, this is true. You can read about it here: [Airtable Attachment URL Behavior | Airtable Support](https://support.airtable.com/docs/airtable-attachment-url-behavior#what-are-expiring-attachment-urls).

This means that you **cannot** use Airtable to store images or other attachments that you want to access from outside of Airtable.

Also, I believe your error is happening because you are providing a string (an image’s “Picture” property is the url to where it is hosted) instead of an object (which you would get if you used the green “Photo” block or similar; you can store that object in a variable and then use the variable for your “atlFotoQui” value).

---

<div class="post-metadata">

**Author:** ![gm.cellinig8f](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gm.cellinig8f/32/163435_2.png) [@gm.cellinig8f](https://community.thunkable.com/u/gm.cellinig8f)\
**Post date:** [February 1, 2024, 9:59am UTC](https://community.thunkable.com/t/solved-2-1-24-4-59-am-edt-airtable-error-invalid-attachment-for-field-xxx-parameters-must-be-objects-not-strings/2813176/4 "2024-02-01T09:59:13Z")

</div>

Thankyou all for explain me!

I’ll continue to use a simple link (with Cloudinary repository).

Grazie  
GM

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [May 1, 2024, 9:59am UTC](https://community.thunkable.com/t/solved-2-1-24-4-59-am-edt-airtable-error-invalid-attachment-for-field-xxx-parameters-must-be-objects-not-strings/2813176/5 "2024-05-01T09:59:27Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
