Upload a file
UseFormData so the browser sends multipart/form-data. Do not set the Content-Type header yourself—the browser adds the required boundary.
Enable CAPTCHA
- Open the Endpoint form and select Settings.
- Under Security, open the Captcha provider menu and choose reCAPTCHA v2, reCAPTCHA v3, hCaptcha or Cloudflare Turnstile. Endpoint forms use your own provider account.
- Add the public site key and the secret key from that provider.
- Register every domain where your form appears with the provider, including localhost while testing.
- Make sure the CAPTCHA switch is on and save.
CAPTCHA tokens normally expire and cannot be reused. Generate a fresh token for every submission. If the endpoint returns
captcha_required, captcha_expired_or_reused, or captcha_failed, show a useful message and let the visitor try again.
Honeypot protection
Honeypot screening runs on every submission and needs no provider account. Any field whose name containshoneypot is treated as a decoy: it is never saved as an answer, and if it arrives with a value the submission is silently dropped.
On an Endpoint form you have to add the decoy yourself. Hide it from real visitors and keep it out of the tab order and autofill:
honeypot, so pick one that blends in with your other fields.