cloudflare / cloudflare/workers-rs
Enable files to be set as value in `FormData`
Open
enhancement
- Dominant language
- Rust
- Stars
- 3.7k
- Forks
- 429
- Avg merge
- 20h 28m
- Merged PRs (30d)
- 7
Description
It's quite strange to have `FormData::get` returning `FormEntry` with `FormData::set` and `FormData::append` accepting only `&str`. It would be great if we can insert `File` or something like it directly into `FormData`.
Contributor guide
Research direction
Start by tracing the FormData::get, FormData::set, and FormData::append entry points and how FormEntry represents values. Check how File-like values are exposed in the Workers API, then define the supported input and verify that files can be inserted and retrieved without breaking existing string behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100