Merge branch 'feat-storage-buckets' of github.com:appwrite/appwrite into feat-storage-buckets
This commit is contained in:
commit
78f7164c30
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue