Attachment

File uploads with derived variants in an AdonisJS app via `@jrmc/adonis-attachment`. `@attachment()` decorator on a Lucid model + converters config drives image resize/reformat (e.g. webp thumbnails). URLs are pre-computed on read via a model helper. Use when adding an upload field, changing a converter, testing attachment code, or debugging avatar URLs. Trigger on: "file upload", "avatar", "attachment", "thumbnail", "@attachment", "adonis-attachment".

filipebraida ff539b7 5.9 KB Updated

File contents

filipebraida/adonisjs-starter-kit/tree/main/packages/skills/attachment commit ff539b7909

Frequently asked questions

npx skillmds@latest add filipebraida/attachment