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

# downloadAttachments

Downloads a list of attachment ids as a zip file.

## Parameters

1. downloadOptions - JSON object
   * requestedIds - list of ids to download
   * fileName - (optional) name of the downloaded file

## Example Usages

```javascript
app.downloadAttachments({
  requestedIds: [196, 197, 200],
});
```

```javascript
app.downloadAttachments({
  requestedIds: [196, 197, 200],
  fileName: "myDownload.zip",
});
```

### Return Values

Function does not explicitly produce return value.
