mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #4869] [bug]: Can't send multipart/form data #1833
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#1833
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 @CheloXL on GitHub (Mar 10, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4869
Originally assigned to: @CuriousCorrelation on GitHub.
Is there an existing issue for this?
Current behavior
I'm trying to do a simple file(s) upload. It always fails with "Extension error. Failed running request on extension"
Steps to reproduce
Logs and Screenshots
Browser console shows:
@jamesgeorge007 commented on GitHub (Mar 11, 2025):
Hi, we have a PR with the fix scheduled for the next patch release.
@liyasthomas commented on GitHub (Mar 14, 2025):
We've released a patch to fix this. @CheloXL can you check if it's resolved at your end.
@CheloXL commented on GitHub (Mar 14, 2025):
Mmm... No. And now the error message is terser. Running version 2025.2.2 with extension 0.37.
@CuriousCorrelation commented on GitHub (Mar 20, 2025):
Hi @CheloXL, having some trouble reproducing this issue, so to help diagnose what's happening, could you please try sending a request to an echo server? This will help us see exactly what the server is receiving.
Please feel free to use the same
multipart/form-datasetup, you can just paste the following in the endpoint/URL input to auto-insert the full request:Simply change
test_fileto any test file you have available after pasting the request from the app's UI.This will help us determine if the issue is with Hoppscotch's request handling, the extension, or potentially something in between.
@CheloXL commented on GitHub (Mar 20, 2025):
Done. The first thing I see is that while I selected two files (and assigned the same name) only one is listed in the response.
@CuriousCorrelation commented on GitHub (Mar 21, 2025):
Hi @CheloXL,
Thanks for running that test! It seems like extension is correctly sending
multipart/formdataafter the latest update and the server is indeed receiving it as well.Looking at the echo server response, I believe this behavior varies from server to server depending on how they handle multipart form data with duplicate field names.
I ran similar tests with curl directly and found that both the
echo.qubit.codesandhttpbin.orgservers show the same behavior - when sending two files with the same field name ("test_file"), only one file appears in the response.Response:
As you can see, this matches your experience - only one file appears in the response despite sending two with the same field name.
To determine if this is specific to Hoppscotch or simply how your target server processes the request, you might want to compare the same request using other tools like curl or any other API testing tools for verification.
@CuriousCorrelation commented on GitHub (Apr 11, 2025):
Noticed there hasn't been activity on this issue for a while, and although we've made improvements to the extension, it does have inherent limitations that can't be easily overcome.
For a much better experience with file uploads and other API testing needs, I strongly recommend our Hoppscotch Desktop App, which offers more reliable functionality, more features, better diagnostics, and overall stability.
I'll be closing this issue now, but feel free to reach out if you have any questions!
@CheloXL commented on GitHub (Apr 11, 2025):
I didn't have time to re-check, but please note that this was working. I never used the desktop app.
@CheloXL commented on GitHub (Apr 11, 2025):
Just tested. Still not working.
@CuriousCorrelation commented on GitHub (Apr 11, 2025):
Hi @CheloXL thanks for making time to follow up.
What makes this particularly difficult is that we haven't been able to reproduce the issue consistently on our end. Different environments and configurations seem to affect this behavior.
The extension has become increasingly challenging to maintain with our evolving architecture. As we've moved core functionality into our cross-platform kernel, enabling significant improvements across our ecosystem, the browser extension, due to its nature, has become somewhat detached from these improvements.
While we'll definitely continue investigating this specific issue, I highly recommend trying our Desktop app. It offers significantly better file upload handling, all CORS-bypassing capabilities of the extension, reliable localhost connections, and can receive better support thanks to its diagnostic capabilities for functionality like these.
@3v3r-aidev commented on GitHub (Oct 3, 2025):
same problem on my end. sending a csv file to an n8n webhook url and it keeps arriving as json and not as binary (csv)