From a3fa418aa5bf34a4fcc4104bc5c8bd8d944c60fb Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 9 Dec 2021 13:30:52 +0545 Subject: [PATCH] update chunks uploaded when all chunks are uploaded --- app/controllers/api/storage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 4b37e9c3ce..53a6ff8e7e 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -729,7 +729,8 @@ App::post('/v1/storage/buckets/:bucketId/files') ->setAttribute('openSSLVersion', $openSSLVersion) ->setAttribute('openSSLCipher', $openSSLCipher) ->setAttribute('openSSLTag', $openSSLTag) - ->setAttribute('openSSLIV', $openSSLIV); + ->setAttribute('openSSLIV', $openSSLIV) + ->setAttribute('chunksUploaded', $chunksUploaded); if($permissionBucket) { $file = Authorization::skip(function() use ($dbForInternal, $bucketId, $fileId, $file) {