Node uses the backend interface to upload pictures

       I have used the interface this week, and in the process of using it, the backend provides an interface for uploading pictures, and I need to use node to encapsulate it before using it, which is still a problem encountered.

Step 1: Need to install some plugins

 Step 2: Just use node to encapsulate the interface

 For the formdata.append('userId', userId) above, you need to look at the parameters given by the backend interface, and write as many parameters as there are. As for using this interface, axios is basically the same as using ajax before.

 

Guess you like

Origin blog.csdn.net/m0_64562972/article/details/125708430