#useFetcher() with files
1 messages · Page 1 of 1 (latest)
never, but interesting case!!
Have you tried creating a FormData and appending the files to the FormData and send that ?
we have used the submit function before, where we also appended things to form data and then sent that request
but never files so far
const formData = new FormData();
formData.append("img", files[0]);
fetcher.submit(formData, {
encType: "multipart/form-data",
method: "post",
action: "/route"
})
something like that ... Where do you get the files from ?