From 80a89877c14efbfdb1edf1c1d62b1c717e74d6c9 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 9 Dec 2021 14:11:30 +0545 Subject: [PATCH] fix variable --- app/controllers/api/storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 7c597615c..a26b8141a 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -585,7 +585,7 @@ App::post('/v1/storage/buckets/:bucketId/files') $size = (\is_array($file['size']) && isset($file['size'][0])) ? $file['size'][0] : $file['size']; $contentRange = $request->getHeader('content-range'); - $fileId = $fileId === 'unique()' ? $$dbForExternal->getId() : $fileId; + $fileId = $fileId === 'unique()' ? $dbForExternal->getId() : $fileId; $chunk = 1; $chunks = 1;