Local Storage Plugin
This plugin registers the required media strategy functions to stream, upload, update and delete media from the specified local directory.
Installation
To install the Local Storage plugin, run the following command in your terminal:
Configuration
To use the Local Storage plugin, you need to add it to your lucid.config.ts
or lucid.config.js
file. This accepts an uploadDir
value which is the directory where the uploaded files will be stored. This is relative to the root of your project.