Commit a408ebb5 authored by Tristan Cavelier's avatar Tristan Cavelier

fix putattachment revision storage bug

if the previous document does not exist, it must not stop the upload
parent 931ca180
......@@ -786,6 +786,10 @@ jIO.addStorageType('revision', function (spec, my) {
functions.postDocument(attachment_list);
},
function (err) {
if (err.status === 404) {
functions.postDocument([]);
return;
}
err.message = "Cannot upload document";
that.error(err);
}
......
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