Merge branch 'master' of ssh://camlistore.org:29418/camlistore

This commit is contained in:
Brad Fitzpatrick 2012-10-28 19:31:19 +01:00
commit 8ea91bae9c
1 changed files with 3 additions and 3 deletions

View File

@ -241,12 +241,12 @@ function camliUploadFileHelper(file, contentsBlobRef, opts) {
function camliUploadString(s, opts) {
opts = saneOpts(opts);
var blobref = "sha1-" + Crypto.SHA1(s);
var parts = [s];
bb = new WebKitBlobBuilder();
bb.append(s);
var bb = new Blob(parts);
var fd = new FormData();
fd.append(blobref, bb.getBlob());
fd.append(blobref, bb);
var uploadCb = {};
uploadCb.success = function(resj) {