javascript - Node JS Form with dropzone -
i using node js express develop form people can upload file , metadata of file. following tutorial, couldn't add form.
i using dropzone uploading file, should link server+name_of_file
whenever try print values of form, object hold file without fname/lastname
<div id="uploader"> <form action="/upload" class="dz" id="i-dz"> <input type="text" name="fname"> <input type="text" name="lastname"> </form> </div> app.post('/upload', function (req, res, next) { console.log(res) //var form = new multiparty.form(); }
Comments
Post a Comment