search

Home  >  Q&A  >  body text

javascript - How to save files uploaded by the front end in nodejs

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).

黄舟黄舟2709 days ago687

reply all(2)I'll reply

  • 世界只因有你

    世界只因有你2017-06-24 09:45:24

    Plug-in implementation node-formidable

    Native implementation link

    reply
    0
  • 阿神

    阿神2017-06-24 09:45:24

    The plug-in uses multer

    reply
    0
  • Cancelreply