Skip to content

Commit

Permalink
Fix ETAG returned by bulk upload
Browse files Browse the repository at this point in the history
Refresh Node object to get fresh fileinfo data after touch

Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Aug 23, 2022
1 parent b888c61 commit 7916fc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/dav/lib/BulkUpload/BulkUploadPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public function httpPost(RequestInterface $request, ResponseInterface $response)

$node = $this->userFolder->newFile($headers['x-file-path'], $content);
$node->touch($mtime);
$node = $this->userFolder->getById($node->getId())[0];

$writtenFiles[$headers['x-file-path']] = [
"error" => false,
Expand Down

0 comments on commit 7916fc9

Please sign in to comment.