Skip to content

Commit d96376e

Browse files
committed
get Error: 'First argument needs to be a number, array or string' with [email protected]
buffer.js:238 throw new Error('First argument needs to be a number, ' + ^ Error: First argument needs to be a number, array or string. at new Buffer (buffer.js:238:15) at FormStream.field (./formstream/lib/formstream.js:135:16) at Service.uploadWithToken (./lib/rs.js:146:8) at Object.oncomplete (./lib/rs.js:183:10)
1 parent 4b4f2e6 commit d96376e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Service.prototype.uploadWithToken = function(uploadToken, stream, key, mimeType,
143143
var form = formstream();
144144
form.field('action', actionString);
145145
form.field('params', callbackQueryString);
146-
form.field('multipart', true);
146+
form.field('multipart', 'true');
147147
form.field('auth', uploadToken);
148148
form.stream('file', stream, filename, mimeType);
149149
form = new util.Form(form, form.headers()['Content-Type']);

0 commit comments

Comments
 (0)