Skip to content

Commit 7916fc9

Browse files
committed
Fix ETAG returned by bulk upload
Refresh Node object to get fresh fileinfo data after touch Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent b888c61 commit 7916fc9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/dav/lib/BulkUpload/BulkUploadPlugin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public function httpPost(RequestInterface $request, ResponseInterface $response)
9090

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

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

0 commit comments

Comments
 (0)