---
tags: [attachments, hub]
module: Attachments
---

# Attachments Module — Hub

> Small, focused module for managing file uploads that can be attached to Sales/Purchase documents.

## Models
[[[Model]GeneralAttachment]]

## Controllers
[[[Controller]GeneralAttachmentController]]

## Services
[[[Service]AttachmentServices]]

## Repositories
[[[Repo]GeneralAttachmentsRepository]]

## Reference
[[[Routes]Routes]] · [[[DB]DatabaseTables]] · [[[Cross]CrossModuleDependencies]]

---

## Flow

```
Upload file → GeneralAttachment (is_attached = false)
                     ↓
         Attach to document (Invoice / PurchaseBill / Expense)
                     ↓
         AttachingFileToModelService → file moved, is_attached = true
                     ↓
         Specific attachment record created (InvoiceAttachment etc.)
```

---

## Related Modules
[[START_HERE]] · [[_CompanyUser]] · [[_Accounting]]
