1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Merge branch 'feat-storage-buckets' of github.com:appwrite/appwrite into feat-storage-buckets

This commit is contained in:
Damodar Lohani 2021-11-01 14:45:32 +05:45
commit 78f7164c30

View file

@ -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);
}