api-client/packages/hoppscotch-desktop/src-tauri
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
..
capabilities fix(desktop): extend file-write permissions (#5070) 2025-05-21 18:27:20 +05:30
icons feat: platform independent core and the new desktop app (#4684) 2025-02-28 00:01:25 +05:30
src feat(desktop): explore random port for IPv6 compat (#5311) 2025-08-08 13:40:02 +05:30
.gitignore feat: platform independent core and the new desktop app (#4684) 2025-02-28 00:01:25 +05:30
build.rs feat(desktop): portable phase-1 foundational: infra & build (#5259) 2025-07-24 15:45:48 +05:30
Cargo.lock fix(relay): expand MIME type support (#5306) 2025-08-08 13:51:46 +05:30
Cargo.toml fix(relay): expand MIME type support (#5306) 2025-08-08 13:51:46 +05:30
tauri.conf.json chore: bump version to 2025.7.0 2025-07-28 23:48:07 +05:30
tauri.portable.macos.conf.json chore: bump version to 2025.7.0 2025-07-28 23:48:07 +05:30
tauri.portable.windows.conf.json chore: bump version to 2025.7.0 2025-07-28 23:48:07 +05:30