Commit d3d10cfe authored by Tristan Cavelier's avatar Tristan Cavelier

splitstorage.js putAttachment no response fixed

parent 30810b33
...@@ -368,10 +368,10 @@ ...@@ -368,10 +368,10 @@
var i, attachment_list = [], data = param._blob; var i, attachment_list = [], data = param._blob;
for (i = 0; i < priv.storage_list.length; i += 1) { for (i = 0; i < priv.storage_list.length; i += 1) {
attachment_list[i] = jIO.util.deepClone(param); attachment_list[i] = jIO.util.deepClone(param);
attachment_list[i]._data = data.slice( attachment_list[i]._blob = data.slice(
(data.length / priv.storage_list.length) * i, data.size * i / priv.storage_list.length,
(data.length / priv.storage_list.length) * (i + 1), data.size * (i + 1) / priv.storage_list.length,
"application/octet-stream" data.type
); );
} }
priv.send( priv.send(
...@@ -447,7 +447,7 @@ ...@@ -447,7 +447,7 @@
} }
} }
} }
that.success({"data": doc}); command.success({"data": doc});
}); });
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment