Receiving a file in a server function
Initially, I tried to use zod-form-data to be the validator:
this would be rejected that the type of the file param is not File. I see the same issue when using FormData:
when i
console.log(typeof blob), I get string.1 Reply
foreign-sapphireOP•5mo ago
figured this out -- you must pass
method: POST when dealing with files on server functions.