mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #5510] [bug]: uploading files doesn't work using multipart/form-data content type #2121
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @theeurbanlegend on GitHub (Oct 24, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5510
Is there an existing issue for this?
Platform
Desktop App
Browser
Chrome
Operating System
macOS
Bug Description
What happened?
When I attempt to upload files using multipart/form-data in Hoppscotch, no files are being sent to the server. My NestJS backend receives an empty files array, even though I've properly configured the form-data with a file field labeled "files".
What I expected: The files should be uploaded and received by my server, similar to how Postman and Insomnia handle the same request.
Steps to reproduce
Open Hoppscotch and create a POST request to a multipart/form-data endpoint (e.g., http://localhost:8080/storage/upload)
Set Content-Type to multipart/form-data
Add a form-data field with key files and select a file as the value
Send the request
Observe that the server receives an empty files array: files: []
Additional context
Interceptor used: HoppscotchKernel/0.2.0
Comparison with other clients:
✅ Postman: Files upload successfully
✅ Insomnia: Files upload successfully
❌ Hoppscotch: Files array is empty
Logs and Console Output
Server-side log showing the received request object:
javascript{
req: IncomingMessage {
rawHeaders: [
'Host', 'localhost:8080',
'Accept', '/',
'Accept-Encoding', 'deflate, gzip',
'user-agent', 'HoppscotchKernel/0.2.0',
'Content-Length', '152',
'Content-Type', 'multipart/form-data; boundary=------------------------L0J0pxJe8FeAoRJF62uSjD'
],
body: { files: '' }, // Note: body.files is an empty string
}
}
Additional details
Backend: NestJS with standard multipart/form-data handling
Boundary generation: The multipart boundary is being set correctly in headers (boundary=------------------------L0J0pxJe8FeAoRJF62uSjD)
Content-Length: Shows 152 bytes are being sent, but file content is not being transmitted
Observations:
The body.files field contains an empty string instead of file data
The multipart boundary appears to be properly formatted
The issue is specific to Hoppscotch; identical requests work in Postman and Insomnia
Deployment Type
Hoppscotch Cloud
Version
No response
@jamesgeorge007 commented on GitHub (Oct 24, 2025):
Hi, this is a known issue and a potential duplicate of #5443. We've a fix up addressing this, scheduled for the upcoming major release. In the meantime, it is recommended to opt out of the Experimental scripting sandbox via
Settings > Experiments. Closing, please keep track of the same in the above issue.@jamesgeorge007 commented on GitHub (Oct 31, 2025):
Hi @theeurbanlegend, this is now resolved in the latest release.
@theeurbanlegend commented on GitHub (Nov 1, 2025):
Thank you!