> For the complete documentation index, see [llms.txt](https://brixxbox.gitbook.io/brixxbox-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/uploadattachment.md).

# uploadAttachment

Uploads an attachement

### Parameters

* data - The data as blob
* documentTypeId (optional) - The ID of the document type to be saved
* fileName - (optional) name of the attachement

### Example Usages

```javascript
   brixxApi.uploadAttachement(blobData, 1, "attachement.jpg");
```
