Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

json-server-uploader

mdeclert35MIT1.0.3

Middleware to upload files with json-server API

readme

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