JSPM

  • Created
  • Published
  • Downloads 891
  • Score
    100M100P100Q106078F
  • License MIT

Turn any field on your Lucid model to an attachment data type

Package Exports

  • @jrmc/adonis-attachment
  • @jrmc/adonis-attachment/attachment_provider
  • @jrmc/adonis-attachment/converters/autodetect_converter
  • @jrmc/adonis-attachment/converters/converter
  • @jrmc/adonis-attachment/converters/document_converter
  • @jrmc/adonis-attachment/converters/image_converter
  • @jrmc/adonis-attachment/converters/pdf_converter
  • @jrmc/adonis-attachment/converters/video_thumbnail_converter
  • @jrmc/adonis-attachment/decorators
  • @jrmc/adonis-attachment/mixins
  • @jrmc/adonis-attachment/services/main
  • @jrmc/adonis-attachment/types/attachment
  • @jrmc/adonis-attachment/types/config
  • @jrmc/adonis-attachment/types/converter
  • @jrmc/adonis-attachment/types/input
  • @jrmc/adonis-attachment/types/mixin

Readme

AdonisJS attachment

This package is currently development and will replace attachment-advanced for AdonisJS 6.

Project sample : adonis-starter-kit

View documentation

ChangeLog

⚠️ Breaking change version 2, include @adonisjs/drive

Roadmap

  • attachment file by file system
  • save meta data
  • variantes
    • images
    • documents thumbnail
    • videos thumbnail
  • command regenerate
  • adonis-drive/flydrive
  • jobs queue
  • serialize

Meta data list (if available)

  • extension name
  • size
  • dimension (width, height)
  • created date
  • orientation
  • mime type
  • gps

Variants

Configure differents images sizes and formats

Regenerate (coming soon)

Regenerate variantes files

Drive

Use @adonisjs/drive for private file and cloud services

Jobs queue (coming soon)

Couple with a job queue (recommended, optional)

Setup

Install and configure the package:

node ace add @jrmc/adonis-attachment