json-server-uploader

1.0.3 • Public • Published

JSON server uploader middleware

This middleware parse multipart/form-data content type requests, and upload files on the server when files are detected in requests

Usage

You just need to add it as a middleware in serve command

json-server db.json --middlewares path/to/json-server-uploader

You can use custom upload path using .env file config

UPLOAD_PATH=your/custom/path

Readme

Keywords

none

Package Sidebar

Install

npm i json-server-uploader

Weekly Downloads

7

Version

1.0.3

License

MIT

Unpacked Size

2.31 kB

Total Files

4

Last publish

Collaborators

  • mdeclert