The Attachments API allows you to create and manage a contact's file attachments in a site, making it easier to organize, access, and maintain important attachments directly linked to a contact.
With the Attachments API, you can:
Before you start to code, it's important to note that this API should be used in conjunction with the Contacts API as every attachment is associated with a contact ID.
To use the Attachments API, install the @wix/crm
package using npm or Yarn:
or
Then import { attachments }
from @wix/crm
: