[GH-ISSUE #2594] [feature]: Send binary file as body #862

Closed
opened 2026-03-16 17:28:26 +03:00 by kerem · 10 comments
Owner

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?

  • I have searched the existing issues

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:
image

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? - [X] I have searched the existing issues ### 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](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html) 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: <img width="632" alt="image" src="https://user-images.githubusercontent.com/22124518/185500717-0dadd9d3-d636-4694-b052-aa4ad8abf583.png">
kerem 2026-03-16 17:28:26 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@wisinfun commented on GitHub (Sep 17, 2022):

This feature is very needed

<!-- gh-comment-id:1250051872 --> @wisinfun commented on GitHub (Sep 17, 2022): This feature is very needed
Author
Owner

@lucas-tavares-elevential commented on GitHub (Jan 18, 2024):

Any updates? 👀

I have the exactly same problem with the S3

<!-- gh-comment-id:1898939148 --> @lucas-tavares-elevential commented on GitHub (Jan 18, 2024): Any updates? :eyes: I have the exactly same problem with the S3
Author
Owner

@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-encoded as 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=test will be created in S3.

To tell S3 the Content-Type of the object, I also override the Content-Type with text/plain or binary/octet-stream depending on the situation.

<!-- gh-comment-id:1958761822 --> @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-encoded` as 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=test` will be created in S3. To tell S3 the Content-Type of the object, I also override the Content-Type with `text/plain` or `binary/octet-stream` depending on the situation.
Author
Owner

@MarcelHoell commented on GitHub (Feb 23, 2024):

This feature would be very nice!

<!-- gh-comment-id:1961957246 --> @MarcelHoell commented on GitHub (Feb 23, 2024): This feature would be very nice!
Author
Owner

@W2Wizard commented on GitHub (Jul 17, 2024):

Please add this!

<!-- gh-comment-id:2232830142 --> @W2Wizard commented on GitHub (Jul 17, 2024): Please add this!
Author
Owner

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

<!-- gh-comment-id:2372282278 --> @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?
Author
Owner

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

<!-- gh-comment-id:2372290681 --> @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.
Author
Owner

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

<!-- gh-comment-id:2374098826 --> @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.
Author
Owner

@eikaramba commented on GitHub (Dec 4, 2024):

i think it is now implemented see https://github.com/hoppscotch/hoppscotch/pull/4466

<!-- gh-comment-id:2518712569 --> @eikaramba commented on GitHub (Dec 4, 2024): i think it is now implemented see https://github.com/hoppscotch/hoppscotch/pull/4466
Author
Owner

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

<!-- gh-comment-id:2520044472 --> @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.
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#862
No description provided.