Merge pull request #6530 from owncloud/prevent-corruption-on-parallel-upload-master

Adding a random postfix to the part file.
This commit is contained in:
Thomas Müller 2014-01-07 03:25:26 -08:00
commit 970eed2867
1 changed files with 1 additions and 1 deletions

View 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 . '.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