on the
java side to call and pass formData directly on the client side.
now uses node as a proxy to make it possible to interact directly with the test environment locally when developing locally. When the
client calls upload locally, the
node intercepts the api that invokes the test environment.
but that"s how I handle it because it"s formData,:
var r = request.post( "https://img.codeshelper.com/upload/img/2021/11/06/xbr25xflwjm719.jpg"),
{filename: "unicycle.jpg"}
)
although no error was reported, the interface was not called successfully.
I should first get the formData of the interface
on the
side of node, and then call the api, of the test to pass the formData to the test