
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
connect-multipart-gridform
Advanced tools
Connect compatible multipart middleware configured to stream uploads directly to MongoDB GridFS.
npm install connect-multipart-gridform
var multipart = require('connect-multipart-gridform');
app.use(multipart(options));
Options work the same way as in the connect multipart middleware, with these additions:
The optional filename
function is passed the file.name
before streaming to MongoDB providing an opportunity to customize the filename with a prefix etc.
For the curious, the options are first passed into a gridform before passing on to connects multiple middleware.
Connect multipart middleware uses formidable to process file uploads. formidable
streams the files to disk. Now you can stream directly into GridFS.
connect-multipart-gridform
utilizes both the gridform and connect multipart modules which are directly exposed as:
var multipart = require('connect-multipart-gridform');
var gridform = multipart.gridform;
var connectMultipart = multipart.multipart;
Run the tests with make test
.
Currently only works with Express 3.
FAQs
MongoDB GridFS backed multipart middleware
The npm package connect-multipart-gridform receives a total of 1 weekly downloads. As such, connect-multipart-gridform popularity was classified as not popular.
We found that connect-multipart-gridform demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.