Does filename in the request header have to be

  node.js, question

I want to upload a picture using nodejs simulation form, but the source of the picture is not a local file (I don’t want to operate the local file), but a buffer is sent out as a readable stream, but how to fill in the filename in the request header, I tried to write a name casually and the result will fail to upload, so please give me a thought.

It is not necessary.
But you’d better make sure that you can upload non-local files.
I fell into the pit of inside. It is always abnormal to upload the network files directly. Later, I changed to download the network files to the local and upload them.