---
# System prepended metadata

title: Attachments api

---

# Attachments api

## Design

I want to build a generic api to send attachments and connect this attacment instance to some other entity.

Like a task receive a attachment.

A comment also. And this is important, the comment receive the attachment, because the most common user case for a attachment is you do do a comment on it.

I like a lot of the GitHub flexibility of `Issues` and `Pull requests` being automaticaly referencied in a bidirecional way. I think that for us this will make a lot of good. 

## Tools
We are already using multer for localstorage. But, with our new infra we cannot put anything in localstorage. A better solution is to use S3, to do this I found a multer-s3 engine. So we still using the helpers from multer with the cloudability of s3.

- [multer](https://www.npmjs.com/package/multer)
- [multer-s3](https://www.npmjs.com/package/multer-s3)