From 1dc5bf4377c3e26ce2e5412533e26d6f0535b26d Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 19 May 2026 09:56:46 +0200 Subject: [PATCH] docs(contributing): clarify event.fetch required even for multipart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The multipart note previously said "use raw fetch" which was misread as "global fetch is acceptable". Clarify that event.fetch must always be used — the typed client is bypassed for multipart, but handleFetch still needs to inject the session cookie. Co-Authored-By: Claude Sonnet 4.6 --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b27388c5..bace28d0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -263,7 +263,7 @@ if (!result.response.ok) { return { person: result.data! }; // non-null assertion is safe after the ok check ``` -For multipart/form-data (file uploads): bypass the typed client and use raw `fetch` — the client cannot handle it. +For multipart/form-data (file uploads): bypass the typed client and use `event.fetch` directly — never global `fetch`. The typed client cannot handle multipart bodies, but `event.fetch` is still required so that `handleFetch` injects the session cookie. ### Date handling