api-client/packages
Shreyas 137e95e873
fix(relay): expand MIME type support (#5306)
This fixes file uploads incorrectly showing MIME type as "Other" instead
 of their actual content types by expanding the `MediaType` enum relay
 to include common audio, video, and image formats.

 Basically `MediaType` enum is used for both `ContentType` which would
 map to `ContentType` from `hoppscotch-data` (e.g. `multipart/form-data`)
 but also to `FormValue` in `interop`
 ```rust
 pub enum FormValue {
     ...
     File {
         filename: String,
         content_type: MediaType,
         data: Bytes,
     },
 }
 ```
 although the later should be much more pervasive.

 This is a follow up on #5244

 Closes FE-887
 Closes #3810
 Closes #5223
 Closes #5233

 The issue occurred because the `relay`'s `MediaType` couldn't deserialize
 beyond the basic types (text, JSON, XML, etc.), lacked support for
 other media file types. The TypeScript layer correctly detected MIME
 types (e.g., "audio/x-m4a"), but the deserialization process fell back
 to `MediaType::Other`. Main reason for servers performing strict MIME
 validation to reject uploads.
2025-08-08 13:51:46 +05:30
..
codemirror-lang-graphql chore: align TypeScript version across packages 2025-06-25 16:34:08 +05:30
hoppscotch-agent fix(relay): expand MIME type support (#5306) 2025-08-08 13:51:46 +05:30
hoppscotch-backend chore: change session config (#5289) 2025-07-29 14:32:57 +05:30
hoppscotch-cli chore: bump CLI version to 0.23.3 2025-07-29 12:10:21 +05:30
hoppscotch-common feat(desktop): explore random port for IPv6 compat (#5311) 2025-08-08 13:40:02 +05:30
hoppscotch-data feat(common): add advanced configuration for auth and token request parameters (#5253) 2025-07-28 23:43:08 +05:30
hoppscotch-desktop fix(relay): expand MIME type support (#5306) 2025-08-08 13:51:46 +05:30
hoppscotch-js-sandbox chore: align TypeScript version across packages 2025-06-25 16:34:08 +05:30
hoppscotch-kernel fix(relay): expand MIME type support (#5306) 2025-08-08 13:51:46 +05:30
hoppscotch-relay feat: platform independent core and the new desktop app (#4684) 2025-02-28 00:01:25 +05:30
hoppscotch-selfhost-desktop feat(common): add advanced configuration for auth and token request parameters (#5253) 2025-07-28 23:43:08 +05:30
hoppscotch-selfhost-web chore: resolve lint errors 2025-07-28 23:50:36 +05:30
hoppscotch-sh-admin fix: onboarding flow smtp bug (#5297) 2025-07-30 15:13:49 +05:30