Skip to content

apoorvanand1a/formidable-upload-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

formidable-upload-example

Example express app using formidable-upload

var upload = require('formidable-upload'); var uploader = upload() .accept(/image*/) .to(['public', 'data', 'images'], '9876543210') .resize({ use: 'resize', settings: { width: 800, quality: 80 } }); .imguri(); // .. app.post('/upload', uploader.middleware('imagefile'), home.upload, home.errors); 

Please note, magickwand is needed only if you're going to test resize. Follow Magickwand for instructions on installing it.

Pre-requisites (for magickwand)

On Linux: apt-get install libmagickwand-dev On Mac (Using Homebrew) brew install imagemagick --disable-openmp

About

Example express app using formidable-upload

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 56.8%
  • HTML 29.4%
  • CSS 13.8%