uploadfilemodule
v1.0.4
Published
In this module upload file in your directory
Downloads
1
Maintainers
Readme
uploadfilemodule
This module help upload file in your project directory
install dependancy
npm install express-fileupload
npm install slugnid
Installation
npm install uploadfilemodule
Usage
const uploadfiledata = require('uploadfilemodule')
upload file
const requestfile = req.files.image_file;
const path = 'Here is your path for upload in directory';
// supported format for images are png,gif and jpeg
// supported format for video is mp4
const filetype = 'image OR video' // two types
uploadfiledata.uploadfile(requestfile,path,filetype)