prevent overwriting collections when uploading
This commit is contained in:
parent
76f7adfed4
commit
b8627c33fb
@ -284,6 +284,7 @@ function upload_collection(user, password, collection_href, file, callback) {
|
|||||||
callback(request.status + " " + request.statusText);
|
callback(request.status + " " + request.statusText);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
request.setRequestHeader("If-None-Match", "*");
|
||||||
request.send(file);
|
request.send(file);
|
||||||
return request;
|
return request;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user