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>
This commit is contained in:
Côme Chilliet 2022-08-23 16:58:13 +02:00
parent b888c61463
commit 7916fc91b5
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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,