I’m trying to upload a file using Netlify forms via AJAX.
The form gets processed and submitted correctly except the file field is empty in the dashboard.
I noticed that encoding a file to URL search params string returns just
%5Bobject+File%5D. Is that correct?
Here’s my code: https://gist.github.com/tmvst/eb4dfb941a518d6ee4c6e676d704b80f
It’s a simple Next.js app. Am I making some dumb mistake or encoding a file into a URL string is incorrect in the docs?