Skip to content

josephwegner/Multipost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multipost: An easy interface for the multipart/form-data protocol

Install

Multipost is easily installable via npm. Just run the following command:

$ npm install multipost

Or, if you'd like to install Multipost at the global level, at the global flag

$ npm install multipost -g

Quick Start

There are quick start examples found in the test directory. Here's a basic usage for uploading a standard form:

var multipost = require("multipost");

var postFields = [
        {
            name: "field1", //Required
            value: "thisisfield1" //Required
        },
        {
            name: "field2",
            value: "thisisfield2"
        }
    ];

var req = new multipost("http://www.wegnerdesign.com/testFiles.php", postFields);

req.post(function(res) {
    console.log(res.data); 
});

License

This module is released under the GPL.

Contributors

Joe Wegner via WegnerDesign

Thanks

Huge thanks to onteria_ for the wonderful information found in this post.

About

Node.js module for sending mutlipart/form-data requests over HTTP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published