yolo
Explore posts from serversTTCTheo's Typesafe Cult
•Created by yolo on 4/18/2024 in #questions
zod validation with uploadthing and server actions
as i said if i pass onUpload={uploadFiles} to direct upload on uploadthing after i upload files i can't validate this .min(2) because after upload my files array is empty
7 replies
TTCTheo's Typesafe Cult
•Created by yolo on 4/18/2024 in #questions
zod validation with uploadthing and server actions
7 replies
TTCTheo's Typesafe Cult
•Created by yolo on 4/18/2024 in #questions
zod validation with uploadthing and server actions
and there is my action
but on submit i get this error
7 replies
TTCTheo's Typesafe Cult
•Created by yolo on 4/18/2024 in #questions
zod validation with uploadthing and server actions
i fixed it by adding onUpload directly after uploading images, but i tried to validate it with minimum 2 images and run action when submiting form before submitHandler function from react form state like this
7 replies