part file needs to have .part extension
This commit is contained in:
parent
dd202d9ad3
commit
6c45fab037
|
@ -86,7 +86,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
|
||||||
// root folder because we can't create new files in /shared
|
// root folder because we can't create new files in /shared
|
||||||
// we extend the name with a random number to avoid overwriting a existing file
|
// we extend the name with a random number to avoid overwriting a existing file
|
||||||
if (dirname($partpath) === 'Shared') {
|
if (dirname($partpath) === 'Shared') {
|
||||||
$partpath = pathinfo($partpath, PATHINFO_FILENAME) . rand();
|
$partpath = pathinfo($partpath, PATHINFO_FILENAME) . rand() . '.part';
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue