FormData when you need file uploads.
Because Formbase returns a 303 redirect to browser requests, treat that status as success in your client-side handler.
1
Wire up the submit handler
Use FormKit’s
@submit hook to send data to Formbase.2
Send the data
- JSON submission
- File upload
Use a server-side submit if you need a JSON response from Formbase.