1.0.4 • Published 3 years ago

uploadfilemodule v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago