The file type conditional in the definition of useForm() was returning an array for value instead of the file indexed at the beginning of that array. Wasn't sure if you had future plans for uploading multiple photos, but this fixes the error considering just one photo is uploaded.
The file type conditional in the definition of useForm() was returning an array for value instead of the file indexed at the beginning of that array. Wasn't sure if you had future plans for uploading multiple photos, but this fixes the error considering just one photo is uploaded.