I have a problem, I need to validate an image with zod. I am searching for 3 hours. I can't find out on validating the image? Can anyone help me out to fix this? zod must have image validate yes?
const payloadSchema = z.object({
image: z.record(z.string()),
})
Find something like this, but how can I add the image that is 3 mb max and it's type must be "jpg" "png" or "gif"