Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
gridfs-form
Advanced tools
Module aims to provide easy way to bind multipart forms using MongoDB GridFS feature for storing uploaded files. It does not write any temporary files, piping uploaded parts directly into gridfs instead (using gridfs-stream).
For multipart request parsing it has a busboy-based implementation. Other implementations are welcome.
The module exports:
For the details, see tests.
// connection is a mongo connection, driver is the mongoose module
Grid = require 'gridfs-stream'
{BusboyParser, Form} = require 'gridfs-form'
grid = new Grid connection.db, driver.mongo
// app is an express instance
app.post '/upload', (req, res) ->
form = new Form new Parser(), grid
form.bind req, (err, bind) ->
return res.status(500).send(err) if err
res.status(200).json(bind);
FAQs
Multipart form binding storing files in gridfs.
We found that gridfs-form 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.