mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #2594] [feature]: Send binary file as body #862
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#862
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 @metehus on GitHub (Aug 18, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2594
Is there an existing issue for this?
Summary
I would like to send a binary file as the body. There are some issues regarding this (#298), but this resolves to send a file using form-data. I would like to send the file as the entire body
Why should this be worked on?
It is something that can happen, so it should be possible to do. Also, amazon S3's PutObject api requires that the file is sent via the body, and i can't do that using hoppscotch.

Btw, in postman, it is also possible to do that:
@wisinfun commented on GitHub (Sep 17, 2022):
This feature is very needed
@lucas-tavares-elevential commented on GitHub (Jan 18, 2024):
Any updates? 👀
I have the exactly same problem with the S3
@kanonji commented on GitHub (Feb 22, 2024):
I am also looking forward to this feature.
However, in my case, I used
application/x-www-form-encodedas a workaround because I didn't care what data I uploaded.After setting it up with "key: data, value: test", an object like a text file with
data=testwill be created in S3.To tell S3 the Content-Type of the object, I also override the Content-Type with
text/plainorbinary/octet-streamdepending on the situation.@MarcelHoell commented on GitHub (Feb 23, 2024):
This feature would be very nice!
@W2Wizard commented on GitHub (Jul 17, 2024):
Please add this!
@devguydavid commented on GitHub (Sep 24, 2024):
I had so much hope for Hoppscotch! But this one issue is a showstopper for us.
I can understand there might be some complexity here with the way the UI is set up currently since, currently, one selects a content type and then provides the content. There are many content types that files could represent. However, maybe it would work to allow the selection of some special menu item "from file" or even "application/octet-stream" assuming it is binary, let them select a file like is possible for text/plain, and let them override it in the headers?
@devguydavid commented on GitHub (Sep 24, 2024):
I also understand that this means Hoppscotch, in order to work reliably in the web-based version and especially when sharing with teams, would need to start storing files, potentially large files, and a lot of them.
I hope this can be figured out because so far, after spending a lot of time with a lot of different tools, I like Hoppscotch the best.
@ValeryP commented on GitHub (Sep 25, 2024):
We need the ability to send binary files as the body, not just as form data. This is essential for working with APIs like Amazon S3's PutObject, which requires direct file uploads via the body. Currently, this limitation forces us to switch to other tools like Postman, breaking our workflow.
By implementing this feature, you'll make Hoppscotch far more versatile and a true go-to tool for API testing, especially for developers who need this functionality regularly. Let's get this done and make Hoppscotch a more powerful option for serious API work.
@eikaramba commented on GitHub (Dec 4, 2024):
i think it is now implemented see https://github.com/hoppscotch/hoppscotch/pull/4466
@liyasthomas commented on GitHub (Dec 5, 2024):
Thanks for your patience and valuable feedback. This feature has been implemented in the latest release.
Closing this ticket as this feature is now available in the recent version. Please feel free to reach out if you have any other concerns.