johannschopplich / nuxt-api-party

🐬 Securely connect to any API with a server proxy and generated composables
https://nuxt-api-party.byjohann.dev
MIT License
260 stars 10 forks source link

Multiple form data files not sent #60

Closed johannschopplich closed 11 months ago

johannschopplich commented 11 months ago

I have been using "Nuxt Api Party" in my project for a while now, but I have encountered a problem with sending multiple images.

The problem occurs whenever I try to send multiple images. The "Nuxt Api Party" form data serialises my Formdata and only adds the first image in my request and disregards the rest as shown in the screenshot below:

image

even though I have added two images (below is the console log for Formdata values): image

I have been stuck on this problem for awhile now, is there a way to send multiple images or files ? Any help is much appreciated, thanks.

Originally posted by @NebilSahin in https://github.com/johannschopplich/nuxt-api-party/discussions/59