• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

expressjs / multer / 27543801534
99%
master: 98%

Build:
Build:
LAST BUILD BRANCH: v2.2.0
DEFAULT BRANCH: master
Ran 15 Jun 2026 11:42AM UTC
Jobs 1
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Jun 2026 11:42AM UTC coverage: 99.003% (+0.03%) from 98.973%
27543801534

push

github

web-flow
Merge commit from fork

* test: add regression tests for orphan file cleanup

Verify that diskStorage does not leave orphan files on disk when:
- client aborts TCP connection mid-upload
- multipart request is truncated (missing closing boundary)

Ref: https://github.com/expressjs/multer/security/advisories/GHSA-3p4h-7m6x-2hcm

* fix: clean up in-progress disk writes on abort

Track files passed to storage._handleFile in a pendingFiles array so
that finishAbort can remove them even when the callback has not fired.
In diskStorage, set file.path early and skip file creation when the
source stream is already destroyed.

Ref: https://github.com/expressjs/multer/security/advisories/GHSA-3p4h-7m6x-2hcm

* test: cover orphan cleanup for already-completed files on later abort

Add a case to the existing orphan-file-cleanup suite: when a multi-file
upload aborts on a later file, files that already finished writing to
disk (tracked in uploadedFiles) must still be removed. The existing
tests only exercised the in-flight (pendingFiles) path.

---------

Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>

120 of 135 branches covered (88.89%)

10 of 10 new or added lines in 2 files covered. (100.0%)

298 of 301 relevant lines covered (99.0%)

7777.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run- - 27543801534.1 15 Jun 2026 11:42AM UTC 8
99.0
GitHub Action Run
Source Files on build 27543801534
  • Tree
  • List 8
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27543801534
  • c50a7e27 on github
  • Prev Build on main (#26869458023)
  • Next Build on main (#27543921467)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc