mirror of https://github.com/perkeep/perkeep.git
Merge branch 'master' of ssh://camlistore.org:29418/camlistore
This commit is contained in:
commit
8ea91bae9c
|
@ -241,12 +241,12 @@ function camliUploadFileHelper(file, contentsBlobRef, opts) {
|
||||||
function camliUploadString(s, opts) {
|
function camliUploadString(s, opts) {
|
||||||
opts = saneOpts(opts);
|
opts = saneOpts(opts);
|
||||||
var blobref = "sha1-" + Crypto.SHA1(s);
|
var blobref = "sha1-" + Crypto.SHA1(s);
|
||||||
|
var parts = [s];
|
||||||
|
|
||||||
bb = new WebKitBlobBuilder();
|
var bb = new Blob(parts);
|
||||||
bb.append(s);
|
|
||||||
|
|
||||||
var fd = new FormData();
|
var fd = new FormData();
|
||||||
fd.append(blobref, bb.getBlob());
|
fd.append(blobref, bb);
|
||||||
|
|
||||||
var uploadCb = {};
|
var uploadCb = {};
|
||||||
uploadCb.success = function(resj) {
|
uploadCb.success = function(resj) {
|
||||||
|
|
Loading…
Reference in New Issue