Rename value to contents.
This commit is contained in:
parent
9c1cbb81c9
commit
b337b6d4fb
3 changed files with 9 additions and 14 deletions
|
@ -10,18 +10,12 @@
|
|||
|
||||
curl('127.0.0.1/upload.php', {
|
||||
multipart: [
|
||||
{
|
||||
name: 'file',
|
||||
file: '/home/miao/test.js',
|
||||
type: 'text/html'
|
||||
}, {
|
||||
name: 'sumbit',
|
||||
value: 'send'
|
||||
}
|
||||
{name: 'file', file: '/home/miao/test.js', type: 'text/html'},
|
||||
{name: 'sumbit', value: 'send'}
|
||||
]
|
||||
}, function(e) {
|
||||
console.log(e);
|
||||
return console.log(curl.body);
|
||||
console.log(curl.body);
|
||||
});
|
||||
|
||||
}).call(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue