You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routes/solid-start/v2/(1)advanced/(4)serialization.mdx
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,20 @@ export default defineConfig({
40
40
41
41
If your app enforces a Content Security Policy, keep `json`.
42
42
43
+
## Server function payloads
44
+
45
+
SolidStart applies extra handling for certain payload types so file uploads and binary data can flow without being serialized by Seroval. This applies to both server function arguments and return values. SolidStart bypasses Seroval for:
46
+
47
+
-`FormData`
48
+
-`URLSearchParams`
49
+
-`Uint8Array`
50
+
-`ArrayBuffer`
51
+
-`Blob`
52
+
-`File`
53
+
-`string`
54
+
55
+
Because these values are transferred directly, this can yield smaller payloads for these cases.
0 commit comments