multipart/form-data help #676
Replies: 3 comments
-
|
+1 |
Beta Was this translation helpful? Give feedback.
-
|
@NaviTheCoderboi , @yigsvnsla replace type: 'multipart/form-data' with parse: 'multipart/form-data'. this enforces parsing the body as formdata |
Beta Was this translation helpful? Give feedback.
-
|
It's possibly due to multipart/form-data only allows transmission of files or strings. When you click "Send", the playlistId will get converted to String before sending to your server, which triggers validation error from Elysia. To solve the issue, set the type of this field to t.Numeric() : https://elysiajs.com/patterns/typebox.html#numeric |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
guys i have this elysia model
why do i get error even i am sending formData

Beta Was this translation helpful? Give feedback.
All reactions