2.1.0 • Published 10 years ago

jungles-files v2.1.0

Weekly downloads
25
License
-
Repository
-
Last release
10 years ago

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 files

POST/: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.

2.1.0

10 years ago

2.0.0

11 years ago

1.4.0

11 years ago

1.3.1

11 years ago

1.3.0

11 years ago

1.2.0

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago