Socket
Book a DemoInstallSign in
Socket

connect-fileupload-cleaner

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-fileupload-cleaner

Automatically removes temporary files created by connect's multipart middleware once the request is answered.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Overview

This package is a middleware for connect/express to remove potentially uploaded files after each request.

The bodyParser/multipart middleware is great to handle incoming requests and file uploads, but you may be getting files without even knowing it on routes where you don't expect them, thus filling the disk progressively.

This middleware enforces their deletion after the response is done.

Usage

var connect = require('connect')
  , cleaner = require('connect-fileupload-cleaner')
connect()
  .use(connect.bodyParser())
  .use(cleaner())
  [...]

FAQs

Package last updated on 02 Sep 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts