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
I researched for it. And I discovered that formData.get('file') isn't instance of File. I guess it is Next.js File implementation, it's not global class.
To bypass this, try to change a schema:
What version of Hono are you using?
4.6.4
What runtime/platform is your app running on?
bun
What steps can reproduce the bug?
Alternately - Clone and setup this - https://github.com/vignesh-gupta/jira-clone
with following
.env
:What is the expected behavior?
In the backend, the zod validation middleware should pass as the image is instance of File
Request snapshot from network tab
What do you see instead?
The zod validation failed and the image is not Instance of
File
Zod throws following error
Additional information
No response
The text was updated successfully, but these errors were encountered: