From 6c45fab0375bd8e6c02ba3081da7442b6d783c86 Mon Sep 17 00:00:00 2001
From: Bjoern Schiessle <schiessle@owncloud.com>
Date: Tue, 8 Oct 2013 12:00:32 +0200
Subject: [PATCH] part file needs to have .part extension

---
 lib/private/connector/sabre/file.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php
index 43e25de40c..037dba7f37 100644
--- a/lib/private/connector/sabre/file.php
+++ b/lib/private/connector/sabre/file.php
@@ -86,7 +86,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
 		// root folder because we can't create new files in /shared
 		// we extend the name with a random number to avoid overwriting a existing file
 		if (dirname($partpath) === 'Shared') {
-			$partpath = pathinfo($partpath, PATHINFO_FILENAME) . rand();
+			$partpath = pathinfo($partpath, PATHINFO_FILENAME) . rand() . '.part';
 		}
 
 		try {
-- 
GitLab