-
Beta Was this translation helpful? Give feedback.
Answered by
RobinTail
Apr 24, 2024
Replies: 2 comments
-
Hello @yuuri111 , You need to add the export const config = createConfig({
inputSources: {
put: ["body", "params", "files"], // <———
},
server: {
listen: 3000,
upload: true
},
cors: true,
logger: { level: "debug", color: true },
}); Details: https://github.com/RobinTail/express-zod-api#customizing-input-sources Let me know if it worked for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RobinTail
-
@RobinTail |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @yuuri111 ,
You need to add the
inputSources
to your config, because the inputs aggregation fromfiles
is only configured forPOST
by default. So you can adjust it for your needs this way:Details: https://github.com/RobinTail/express-zod-api#customizing-input-sources
Let me know if it worked for you.