1.0.4 • Published 2 years ago

uploadfilemodule v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 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

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago