From 43d08f5b1ffdd14f693f8615aa6d4bacb58b505c Mon Sep 17 00:00:00 2001 From: Charly Date: Mon, 3 Oct 2016 18:05:32 +0200 Subject: [PATCH] -fixed: locking and office upload --- .../MethodHandlers/WebDavLockMethodHandler.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavLockMethodHandler.cs b/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavLockMethodHandler.cs index 9988da2..4950bde 100644 --- a/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavLockMethodHandler.cs +++ b/WebDavSharp_MVC/WebDAVSharp.Server/MethodHandlers/WebDavLockMethodHandler.cs @@ -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; }