mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[GH-ISSUE #2320] [feature]: Accept raw file as body content type #797
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#797
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 @mahagr on GitHub (May 4, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2320
Is there an existing issue for this?
Summary
When you select request body content type, there is no option for raw data.
This option should be similar to multipart/form-data. but instead of accepting multiple name/value pairs, it should have just a single file upload field. This data would then be sent in the body just as it is.
Why should this be worked on?
PHP does not have support for multipart/form-data for POST, PATCH, etc (as they think it's against HTTP specs).
Instead, they recommend sending the files as a raw stream of data:
https://www.php.net/manual/en/features.file-upload.put-method.php
Unfortunately, Hoppschotch does not support this method.
This simple feature would be a great addition to Hoppschotch. :)
@muraterzioglu commented on GitHub (Sep 7, 2022):
I also agree with that request, on Next.js if you want the send request with body content your body must be RAW.
DTO;
Controller;
Postman supports that feature, but postwoman doesn't :)
@gruessung commented on GitHub (Oct 11, 2023):
+1
@frank-villanueva commented on GitHub (Jan 30, 2025):
+2