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:
commit
970eed2867
|
@ -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)
|
// 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
|
// 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
|
// root folder because we can't create new files in /shared
|
||||||
|
|
Loading…
Reference in New Issue