From be811e236605bf68f4942f4bb7ee6639d42f8fbc Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 8 Sep 2021 14:11:37 +0545 Subject: [PATCH] added new fields for large file support --- app/controllers/api/storage.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 8af9a8b808..d73b1dc842 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -218,6 +218,28 @@ App::post('/v1/storage/buckets') 'array' => false, 'filters' => [], ]), + new Document([ + '$id' => 'chunksTotal', + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ]), + new Document([ + '$id' => 'chunksUploaded', + 'type' => Database::VAR_INTEGER, + 'format' => '', + 'size' => 0, + 'signed' => false, + 'required' => false, + 'default' => null, + 'array' => false, + 'filters' => [], + ]), ], [ new Document([ '$id' => '_key_bucket',