Incompatible node types error when moving files

hi

I am trying to upload large file via sabre ftp client. More details are here How to assemble chunks while uploading large file using sabre webdav php client?

I was following this documentation Chunked file upload — Nextcloud latest Developer Manual latest documentation

Now I am getting this error

<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
  <s:message>Incompatible node types</s:message>
</d:error>

The code that generates this error is


$sourcePath = $tempFolder . '/.file';
$destinationPath = $baseUri . $uploadedFolderName . $uploadedFileName;

var_dump($destinationPath);
//  "/remote.php/dav/files/wedos-auth-7518fe8d-0f5f-4c87-99a2-xxx/uploaded/deprese.pdf"

var_dump($sourcePath);

//  "/remote.php/dav/uploads/wedos-auth-7518fe8d-0f5f-4c87-99a2-xxx/chunks_674d6d3f46a9f/.file"

// Send the MOVE request
$response = $client->request('MOVE', $tempFolder, null, [
    'Destination' => $destinationPath,
    'OC-Total-Length' => $fileSize
]);

someone can help to make it work?
Thank you
Radek

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.