From b0bdcebd15f97e06b07df30bd8642966b8040db2 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sun, 12 Sep 2021 15:52:19 +0545 Subject: [PATCH] fix file custom ID --- app/controllers/api/storage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index ae4728dbc6..161ea023ae 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -666,6 +666,7 @@ App::post('/v1/storage/buckets/:bucketId/files') if ($file->isEmpty()) { $file = $dbForInternal->createDocument('bucket_' . $bucketId, new Document([ + '$id' => $fileId, '$read' => $read, '$write' => $write, 'dateCreated' => \time(),