Browse files

[fix] runtime, upload: Missing a conversion to binary of uploaded con…

…tent, Credit:Bug reported by Alok Menghrajani <alok () fb com>
  • Loading branch information...
1 parent f5b2865 commit 88e8282dc80f82090e5dbd449f82a957dd41d055 @BourgerieQuentin BourgerieQuentin committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/plugins/server/bslNet.nodejs
View
2 lib/plugins/server/bslNet.nodejs
@@ -645,7 +645,7 @@ function fold_multipart_cps(multipart, acc, folder, k) {
add_field(res, 'filename', part.file.filename);
add_field(res, 'content', function (cont) {
var res = empty_constructor();
- add_field(res, 'content', fs.readFileSync(part.file.path));
+ add_field(res, 'content', binary_of_buffer(fs.readFileSync(part.file.path)));
return_(cont, res);
});
} else if ('value' in part) {

0 comments on commit 88e8282

Please sign in to comment.