Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix ETAG returned by bulk upload
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
commit 7916fc91b528eb6a7c6949c7f0ea417825da6153
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