RepositoryJavaScriptUSUnited States
richardgirges

richardgirges/express-fileupload

Simple express file upload middleware that wraps around busboy

1.6kstars
258forks
20issues
3views

📁 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 like name, mimetype, size, truncated, and md5.
  • 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 use useTempFiles to write to disk and access them via tempFilePath.
  • Busboy options passthrough: Pass Busboy options like limits.fileSize directly to the middleware.
  • Filename & path controls: Options like safeFileNames, uriDecodeFileNames, and createParentPath help manage names and directories.
  • Debug tracing: Enable debug with an optional custom logger to 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.

RepositoryJavaScript
rpldy/react-uploady

Modern file uploading - components & hooks for React

1.3k
Nov 26, 2026
RepositoryTypeScript
chibisafe/chibisafe

Blazing fast file vault written in TypeScript! 🚀

2.8k
Nov 12, 2026
RepositoryPHP
pomf/pomf

Pomf is a simple lightweight file host with support for drop, paste, click and API uploading.

930
Jan 1, 2024
RepositoryJavaScript
FineUploader/fine-uploader

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.

8.1k
Nov 19, 2018
RepositoryJavaScript
danielm/uploader

A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.

1.2k
Jan 7, 2022
RepositoryJavaScript
veliovgroup/Meteor-Files

🚀 Upload files via DDP or HTTP to ☄️ Meteor server FS, AWS, GridFS, DropBox or Google Drive. Fast, secure and robust.

1.1k
Oct 1, 2026
RepositoryJavaScript
uploadcare/uploadcare-widget

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.

232
Oct 8, 2026
RepositoryGo
andreimarcu/linx-server

Self-hosted file/code/media sharing website.

1.6k
Apr 26, 2025
RepositoryRust
orhun/rustypaste

A minimal file upload/pastebin service.

1.2k
Nov 24, 2026