media_upload

4.2.1 • Public • Published

simplify upload file using multiparty to the server

Installation

package.json
 
{
    "dependencies"{
        "media_upload":"*"
    }
}
 
$ npm install

configuration.json

{
     "upload_to": "/home/images/",
     "public_url":"http://localhost/images/"
}

Use it

var media_upload = require("media_upload");
media_upload.upload_file(req, function(error, file_url){
    console.log(file_url);
});

Package Sidebar

Install

npm i media_upload

Weekly Downloads

0

Version

4.2.1

License

ISC

Last publish

Collaborators

  • geniusescode