/example-uploads

upload examples using expressjs

Primary LanguageJavaScriptMIT LicenseMIT

Basic upload examples using express

Running example:

git clone https://github.com/meboHQ/example-uploads.git
cd example-uploads
npm install
NODE_ENV=development node .

Requirements

  • Node 8 or greater
  • Express 4 or greater

Actions

Single Upload

POST: http://localhost:8080/api/upload

postman

Command-line version:

node . --help
node . upload --help
node . upload --image=/tmp/foo.png --description="foo description"

Vector Upload

POST: http://localhost:8080/api/vectorUpload

postman

Command-line version:

node . --help
node . vectorUpload --help
node . vectorUpload --images=/tmp/foo1.png --images=/tmp/foo2.png --description="foo description"

Vector Upload With Clean-up

POST: http://localhost:8080/api/cleanupVectorUpload

postman

Command-line version:

node . --help
node . cleanupVectorUpload --help
node . cleanupVectorUpload --images=/tmp/foo1.png --images=/tmp/foo2.png --description="foo description"

Licensing

Mebo is free software; you can redistribute it and/or modify it under the terms of the MIT License