Hi, I’m using sleiman/airtable-php to integrate airtable with my website, the problem that I’m having right now is inserting a public url where my image is hosted to the attachment field of the table; this is the code:
$url = "<url-of-the-image>";
$attachment = array('url' => $url);
$update_details = array(
"ID Verification" => $attachment,
);
$update = $airtable->updateContent("Applications/$record_id", $update_details);
And I get this error:
oerror] => stdClass Object
(
type] => INVALID_ATTACHMENT_OBJECT
message] => Invalid attachment object for field ID Verification: "<url-of-the-image>"
)
I have also tried to make the $attachment
variable an object like this:
$attachment = (object) c 'url' => $url ];
Or do I have to define $attachment
differently or ‘sleiman/airtable-php’ doesn’t support attachment fields?
Help!