haq-utils-box
v2.1.0
Published
This is my utility functions list
Downloads
12
Maintainers
Readme
Haq Utits Box is a Package for helping basic probems
NOTE: Haq Utils Box will not process any form which is not multipart (multipart/form-data
).
Translations
Installation
$ npm install --save haq-utils-box
Usage
Multer adds a body
object and a file
or files
object to the request
object. The body
object contains the values of the text fields of the form, the file
or files
object contains the files uploaded via the form.
Basic usage example:
Don't forget the enctype="multipart/form-data"
in your form.
const haq = require("haq-utils-box");
console.log(haq);
In case you need to handle a text-only multipart form, you should use the .none()
method: