[GH-ISSUE #5510] [bug]: uploading files doesn't work using multipart/form-data content type #2121

Closed
opened 2026-03-16 23:15:26 +03:00 by kerem · 3 comments
Owner

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?

  • I have searched existing issues and this bug hasn't been reported yet

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

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? - [x] I have searched existing issues and this bug hasn't been reported yet ### 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_
kerem 2026-03-16 23:15:26 +03:00
Author
Owner

@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.

<!-- gh-comment-id:3443827475 --> @jamesgeorge007 commented on GitHub (Oct 24, 2025): Hi, this is a known issue and a potential duplicate of #5443. We've a [fix](https://github.com/hoppscotch/hoppscotch/pull/5512) 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.
Author
Owner

@jamesgeorge007 commented on GitHub (Oct 31, 2025):

Hi @theeurbanlegend, this is now resolved in the latest release.

<!-- gh-comment-id:3474201101 --> @jamesgeorge007 commented on GitHub (Oct 31, 2025): Hi @theeurbanlegend, this is now resolved in the [latest release](https://github.com/hoppscotch/hoppscotch/releases/tag/2025.10.0).
Author
Owner

@theeurbanlegend commented on GitHub (Nov 1, 2025):

Thank you!

<!-- gh-comment-id:3476043593 --> @theeurbanlegend commented on GitHub (Nov 1, 2025): Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2121
No description provided.