I have one problem,I need to validate image with zod. am searching like 3 hours... can't find how to validate image? Can anyone please help me with 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 here that image must be 3 mb max and it type must be "jpg" "png" or "gif"