OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

When sending a file and some data, use FormData or JSON? [duplicate]

  • Thread starter Thread starter olivia
  • Start date Start date
O

olivia

Guest
I would like to know, in the context of using Node.js and Express on the backend, whether it is better to use FormData or JSON to transmit a file and some nested data from the frontend (such as an object with many keys, where some keys have values that are arrays of objects). Which method is more suitable and why?

<p>I would like to know, in the context of using Node.js and Express on the backend, whether it is better to use FormData or JSON to transmit a file and some nested data from the frontend (such as an object with many keys, where some keys have values that are arrays of objects). Which method is more suitable and why?</p>
 

Latest posts

I
Replies
0
Views
1
Isaac P. Liu
I
U
Replies
0
Views
1
user3658366
U
G
Replies
0
Views
1
Giampaolo Levorato
G
M
Replies
0
Views
1
Marcelo Rodrigo Nascimento
M
Top