diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-07 03:25:26 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-07 03:25:26 -0800 |
commit | 970eed2867913f97f503e32adbed0bd3ace4ad97 (patch) | |
tree | de9db2b14a7ca5e769b162352b765126515e6419 /lib | |
parent | d2f2645a6a7e802c6cda31747481fe49b7ca0807 (diff) | |
parent | ed469a7d2c11b92cad4446a596c2b27c2d46362b (diff) | |
download | nextcloud-server-970eed2867913f97f503e32adbed0bd3ace4ad97.tar.gz nextcloud-server-970eed2867913f97f503e32adbed0bd3ace4ad97.zip |
Merge pull request #6530 from owncloud/prevent-corruption-on-parallel-upload-master
Adding a random postfix to the part file.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/connector/sabre/file.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php index 295575f0af6..53524ec9e54 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 . '.ocTransferId' . 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 |