]> source.dussan.org Git - nextcloud-server.git/commitdiff
part file needs to have .part extension
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 8 Oct 2013 10:00:32 +0000 (12:00 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 8 Oct 2013 10:00:32 +0000 (12:00 +0200)
lib/private/connector/sabre/file.php

index 43e25de40c7d6b682e2316e249e9b39845f51262..037dba7f37b6ba9ff724938b62d2f43337d51843 100644 (file)
@@ -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 {