mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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:
parent
b888c61463
commit
7916fc91b5
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue