From 70ed9711acf630bfceaa92b6b73e3083fdc593cb Mon Sep 17 00:00:00 2001 From: Tristan Cavelier <tristan.cavelier@tiolive.com> Date: Mon, 24 Dec 2012 14:46:05 +0100 Subject: [PATCH] wrong path was given to localStorage in putAttachment method --- src/jio.storage/localstorage.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jio.storage/localstorage.js b/src/jio.storage/localstorage.js index d9fbd04..f0acc3d 100644 --- a/src/jio.storage/localstorage.js +++ b/src/jio.storage/localstorage.js @@ -159,8 +159,10 @@ var newLocalStorage = function (spec, my) { } // upload data localstorage.setItem( - priv.localpath + "/" + command.getAttachmentId(), - command.getAttachmentData()); + priv.localpath + "/" + command.getDocId() + "/" + + command.getAttachmentId(), + command.getAttachmentData() + ); // write document localstorage.setItem( priv.localpath + "/" + command.getDocId(), -- 2.30.9