-fixed: locking and office upload

This commit is contained in:
Charly 2016-10-03 18:05:32 +02:00
parent 387a4f8b34
commit 43d08f5b1f
1 changed files with 3 additions and 3 deletions

View File

@ -97,13 +97,13 @@ namespace WebDAVSharp.Server.MethodHandlers {
// Get the parent collection of the item
IWebDavStoreCollection collection = GetParentCollection(server, store, fileName);
String fileNameLocal = ExtractFileName(fileName);
try {
// Get the item from the collection
IWebDavStoreItem item = GetItemFromCollection(collection, fileName);
IWebDavStoreItem item = GetItemFromCollection(collection, fileNameLocal);
}
catch (Exception) {
collection.CreateDocument(fileName);
collection.CreateDocument(fileNameLocal);
isNew = true;
}