Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 88e8282dc80f82090e5dbd449f82a957dd41d055 1 parent f5b2865
Quentin Bourgerie BourgerieQuentin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/plugins/server/bslNet.nodejs
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.