]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adding a random postfix to the part file.
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 20 Dec 2013 12:48:46 +0000 (13:48 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 20 Dec 2013 12:48:46 +0000 (13:48 +0100)
lib/private/connector/sabre/file.php

index 295575f0af6e4489afa916cdfa102ecd89ff9185..d476e9fab14aa44458a14d133c5ecffdefee5ad3 100644 (file)
@@ -64,7 +64,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
                }
 
                // mark file as partial while uploading (ignored by the scanner)
-               $partpath = $this->path . '.part';
+               $partpath = $this->path . rand() . '.part';
 
                // if file is located in /Shared we write the part file to the users
                // root folder because we can't create new files in /shared