From 3f0e0d686754783c4caad21bb5834733b4391aec Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 28 Oct 2021 16:44:53 +0545 Subject: [PATCH] Update app/controllers/api/storage.php Co-authored-by: Torsten Dittmann --- 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 c6b3c5c67b..b793b18826 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -1106,7 +1106,7 @@ App::put('/v1/storage/buckets/:bucketId/files/:fileId') $file = $dbForInternal->getDocument('bucket_' . $bucketId, $fileId); - if ($file->isEmpty() || $file->getAttribute('bucketId') != $bucketId) { + if ($file->isEmpty() || $file->getAttribute('bucketId') !== $bucketId) { throw new Exception('File not found', 404); }