Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: josephwegner/Multipost
base: 926459ab09
...
head fork: josephwegner/Multipost
compare: 7bb1ab0aed
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 04, 2012
DownJS Rename tests 0bcce6e
DownJS Add index file 7bb1ab0
Showing with 21 additions and 1 deletion.
  1. +1 −0  index.js
  2. +19 −0 test/baseForm.js
  3. +1 −1  test/{test.js → fileUpload.js}
View
1  index.js
@@ -0,0 +1 @@
+module.exports = require(__dirname + "/lib/multipost.js");
View
19 test/baseForm.js
@@ -0,0 +1,19 @@
+//Create necessary globals
+var multipost = require("../");
+
+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);
+});
View
2  test/test.js → test/fileUpload.js
@@ -1,5 +1,5 @@
//Create necessary globals
-var multipost = require("../lib/multipost.js");
+var multipost = require("../");
var fs = require('fs');
//Create a read stream for piping the file

No commit comments for this range

Something went wrong with that request. Please try again.