1.0.2 • Published 4 years ago

node-form-parse v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago
var { form_parse, remove_images } = require('node-form-parse');

var options = { multiples : true, uploadDir : "./public/mydir" };

form_parse (req, options)
.then(body => {
    // multiple true -> body.images
    // multiple false -> body.image
})
.catch(err => {
    // err
});

remove_images({ path : "./public/mydir", image }); // or images [ "img.png" ]
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago