[PR #4550] [MERGED] feat: add individual content types for formadata #4855

Closed
opened 2026-03-17 02:21:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4550
Author: @amk-dev
Created: 11/19/2024
Status: Merged
Merged: 11/24/2024
Merged by: @jamesgeorge007

Base: nextHead: feat/individual-content-type-formdata


📝 Commits (7)

  • 3ef4b18 feat: add individual content types for formadata
  • 812ace3 chore: add contentType in formdata in cli
  • ff0bb9c chore: update copy
  • b8af39e feat: update body schema to include a showIndividualContentType flag
  • 30923c9 fix: preserve content type field values during key-value pair updates
  • c872d8e chore: add content type when generating har param
  • 82f2243 chore: cleanup

📊 Changes

10 files changed (+161 additions, -10 deletions)

View changed files

📝 packages/hoppscotch-cli/src/types/request.ts (+1 -0)
📝 packages/hoppscotch-cli/src/utils/mutators.ts (+15 -1)
📝 packages/hoppscotch-cli/src/utils/pre-request.ts (+2 -0)
📝 packages/hoppscotch-common/locales/en.json (+1 -0)
📝 packages/hoppscotch-common/src/components/http/BodyParameters.vue (+34 -0)
📝 packages/hoppscotch-common/src/helpers/functional/formData.ts (+16 -1)
📝 packages/hoppscotch-common/src/helpers/new-codegen/har.ts (+12 -1)
📝 packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts (+3 -0)
📝 packages/hoppscotch-data/src/rest/index.ts (+7 -7)
packages/hoppscotch-data/src/rest/v/9.ts (+70 -0)

📄 Description

Closes HFE-643.

Description

This PR adds the ability to specify multiple content types for individual fields when using multipart/formdata content type.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4550 **Author:** [@amk-dev](https://github.com/amk-dev) **Created:** 11/19/2024 **Status:** ✅ Merged **Merged:** 11/24/2024 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `feat/individual-content-type-formdata` --- ### 📝 Commits (7) - [`3ef4b18`](https://github.com/hoppscotch/hoppscotch/commit/3ef4b18354a3218cb3f77a051f4a8e2e1600491c) feat: add individual content types for formadata - [`812ace3`](https://github.com/hoppscotch/hoppscotch/commit/812ace3171c4a06c1414950e8d4eb1ecb68b5258) chore: add contentType in formdata in cli - [`ff0bb9c`](https://github.com/hoppscotch/hoppscotch/commit/ff0bb9c047feb667c5372a19a3cf10d5364015eb) chore: update copy - [`b8af39e`](https://github.com/hoppscotch/hoppscotch/commit/b8af39e44805da3a4ebcf23cfa234f035a43797e) feat: update body schema to include a showIndividualContentType flag - [`30923c9`](https://github.com/hoppscotch/hoppscotch/commit/30923c97b0c1219c3e819d22e1ad7915c0736ffe) fix: preserve content type field values during key-value pair updates - [`c872d8e`](https://github.com/hoppscotch/hoppscotch/commit/c872d8eda5b7f0c8292f1885c7e3520ebff73e87) chore: add content type when generating har param - [`82f2243`](https://github.com/hoppscotch/hoppscotch/commit/82f2243bd996f0ac364637e683d3d6074c670a02) chore: cleanup ### 📊 Changes **10 files changed** (+161 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-cli/src/types/request.ts` (+1 -0) 📝 `packages/hoppscotch-cli/src/utils/mutators.ts` (+15 -1) 📝 `packages/hoppscotch-cli/src/utils/pre-request.ts` (+2 -0) 📝 `packages/hoppscotch-common/locales/en.json` (+1 -0) 📝 `packages/hoppscotch-common/src/components/http/BodyParameters.vue` (+34 -0) 📝 `packages/hoppscotch-common/src/helpers/functional/formData.ts` (+16 -1) 📝 `packages/hoppscotch-common/src/helpers/new-codegen/har.ts` (+12 -1) 📝 `packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts` (+3 -0) 📝 `packages/hoppscotch-data/src/rest/index.ts` (+7 -7) ➕ `packages/hoppscotch-data/src/rest/v/9.ts` (+70 -0) </details> ### 📄 Description Closes HFE-643. **Description** This PR adds the ability to specify multiple content types for individual fields when using `multipart/formdata` content type. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:21:08 +03:00
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#4855
No description provided.