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 Updated 98 repo stars
Demo

File contents

filipebraida/adonisjs-starter-kit commit ff539b7909

Frequently asked questions

npx get-skill add filipebraida/attachment