javascript - How to save files uploaded by the front end in nodejs
黄舟
黄舟 2017-06-24 09:43:24
0
2
703

For example, my front-end

<form method="post" action="/on_data">
<input type="file" name="valuename" enctype="multipart/form-data" multiple="multiple" > ;

<button>tijiao</button>

</form>

So how does the backend receive this picture? I found a lot of examples, and basically all of them used various frameworks (maybe I didn’t describe it clearly, but I couldn’t find the native ones anyway).

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
世界只因有你

Plug-in implementation node-formidable

Native implementation link

阿神

The plug-in uses multer

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template