How do I set the encoding for forms that pass picture files and json at the same time

  node.js, question

At the same time, how to set the encoding for the form to transfer the picture file and json, is it multipart/form-data, or is it the default form format or json format?

Passing binary data requiresmultipart/form-data, this format can also be mixed with text information (that is, JSON text), while other formats do not support binary data, so pictures cannot be transferred.