[GH-ISSUE #2320] [feature]: Accept raw file as body content type #797

Open
opened 2026-03-16 17:13:59 +03:00 by kerem · 3 comments
Owner

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?

  • I have searched the existing issues

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. :)

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? - [X] I have searched the existing issues ### 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. :)
Author
Owner

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

export class Detail {
    @IsString()
    @IsNotEmpty()
    challenge: string;
}

Controller;

  @Get(`detail`)
  detail(@Body() detail: Detail) {
    return this.service.detail(detail);
  }

Postman supports that feature, but postwoman doesn't :)

<!-- gh-comment-id:1239110569 --> @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; ```ts export class Detail { @IsString() @IsNotEmpty() challenge: string; } ``` Controller; ```ts @Get(`detail`) detail(@Body() detail: Detail) { return this.service.detail(detail); } ``` Postman supports that feature, but postwoman doesn't :)
Author
Owner

@gruessung commented on GitHub (Oct 11, 2023):

+1

<!-- gh-comment-id:1756978840 --> @gruessung commented on GitHub (Oct 11, 2023): +1
Author
Owner

@frank-villanueva commented on GitHub (Jan 30, 2025):

+2

<!-- gh-comment-id:2624579177 --> @frank-villanueva commented on GitHub (Jan 30, 2025): +2
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#797
No description provided.