Having a lot of trouble uploading files through the pages router.
Unanswered
Burmese posted this in #help-forum
BurmeseOP
Could someone please tell me how I should upload files through the pages router? Thank you.
13 Replies
what do you mean upload?
BurmeseOP
I want the user to upload content through a form
And post it to an api where it will be processed
Currently I am unable to even send normal textual form data
@Burmese And post it to an api where it will be processed
is this nextjs api routes or external api?
@averydelusionalperson is this nextjs api routes or external api?
BurmeseOP
Nextjs api routes
I think you can submit it like any normal form?
using formData
and in your external backend, you will store the image