From: Thomas Müller Date: Fri, 20 Dec 2013 12:48:46 +0000 (+0100) Subject: Adding a random postfix to the part file. X-Git-Tag: v7.0.0alpha2~966^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1c0b8ed21421334fed1a699e52dbb5765b66f96d;p=nextcloud-server.git Adding a random postfix to the part file. --- diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php index 295575f0af6..d476e9fab14 100644 --- a/lib/private/connector/sabre/file.php +++ b/lib/private/connector/sabre/file.php @@ -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