jungles-files
v2.1.0
Published
File server for jungles
Readme
Jungles Files
Express app with two endpoints to store and serve files.
Mount
app.use('/files', require('jungles-files')(__dirname + '/media'); // Param: directory to store the filesPOST/:filename
Expects req.body.file to be a data url. It will rename the file to uuid.extension, store the file in the directory and response with:
{ filename: uuid.extension }GET/:filename
Returns the file.
