United Statesrichardgirges/express-fileupload
Simple express file upload middleware that wraps around busboy
📁 express-fileupload
Upload files in Express with minimal setup.
express-fileupload is a simple Express middleware that wraps around Busboy to parse multipart/form-data uploads. It attaches uploaded files to req.files so they can be accessed directly in route handlers with no extra parsing code.
✨ Highlights
- Access via req.files: Each file is available at
req.files.<inputName>with fields likename,mimetype,size,truncated, andmd5. - Move files with .mv(): Use
req.files.foo.mv(path)with a callback or as a promise to write the uploaded file to disk. - Memory or temp files: Keep files in memory via
data(buffer), or useuseTempFilesto write to disk and access them viatempFilePath. - Busboy options passthrough: Pass Busboy options like
limits.fileSizedirectly to the middleware. - Filename & path controls: Options like
safeFileNames,uriDecodeFileNames, andcreateParentPathhelp manage names and directories. - Debug tracing: Enable
debugwith an optional customloggerto log upload events, progress, and timeouts.
💡 Why it matters
express-fileupload keeps upload handling minimal in Express by exposing a clean file object and a single .mv() method. By building on Busboy for parsing, it avoids extra boilerplate while still giving control over memory use, limits, and file naming for common upload cases.
#Express #FileUpload #Middleware #NodeJS #TiniX
Similar Projects
Discover other similar projects and AI models.
Pomf is a simple lightweight file host with support for drop, paste, click and API uploading.
Multiple file upload plugin with image previews, drag and drop, progress bars. S3 and Azure support, image scaling, form support, chunking, resume, pause, and tons of other features.
A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
🚀 Upload files via DDP or HTTP to ☄️ Meteor server FS, AWS, GridFS, DropBox or Google Drive. Fast, secure and robust.
Uploadcare Widget, an ultimate tool for HTML5 file upload supporting multiple file upload, drag&drop, validation by file size/file extension/MIME file type, progress bar for file uploads, image preview.