Skip to content
Snippets Groups Projects
Commit 6c45fab0 authored by Björn Schießle's avatar Björn Schießle
Browse files

part file needs to have .part extension

parent dd202d9a
No related branches found
No related tags found
No related merge requests found
......@@ -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
// we extend the name with a random number to avoid overwriting a existing file
if (dirname($partpath) === 'Shared') {
$partpath = pathinfo($partpath, PATHINFO_FILENAME) . rand();
$partpath = pathinfo($partpath, PATHINFO_FILENAME) . rand() . '.part';
}
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment