diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-23 16:58:13 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-23 17:59:37 +0200 |
commit | 7916fc91b528eb6a7c6949c7f0ea417825da6153 (patch) | |
tree | c174c496e566d61e2d7146ebdd8af4a85fc85dde | |
parent | b888c6146327d842e21988b0d90d6ade4f3a9435 (diff) | |
download | nextcloud-server-7916fc91b528eb6a7c6949c7f0ea417825da6153.tar.gz nextcloud-server-7916fc91b528eb6a7c6949c7f0ea417825da6153.zip |
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>
-rw-r--r-- | apps/dav/lib/BulkUpload/BulkUploadPlugin.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/dav/lib/BulkUpload/BulkUploadPlugin.php b/apps/dav/lib/BulkUpload/BulkUploadPlugin.php index bb6baf48b56..6ab4b21a74b 100644 --- a/apps/dav/lib/BulkUpload/BulkUploadPlugin.php +++ b/apps/dav/lib/BulkUpload/BulkUploadPlugin.php @@ -90,6 +90,7 @@ class BulkUploadPlugin extends ServerPlugin { $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, |