From 97c53be04d41f600227c350fab80c0fe25f4b4c1 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Thu, 16 May 2024 12:21:51 +0900 Subject: [PATCH] Update Appwrite.php --- src/Migration/Destinations/Appwrite.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index b4bb316..9ef746b 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -499,13 +499,13 @@ public function importFile(File $file): File ); if ($file->getEnd() == ($file->getSize() - 1)) { + $file->setStatus(Resource::STATUS_SUCCESS); + // Signatures for Encrypted files are invalid, so we skip the check if ($file->getBucket()->getEncryption() == false || $file->getSize() > (20 * 1024 * 1024)) { if ($response['signature'] !== $file->getSignature()) { $file->setStatus(Resource::STATUS_WARNING, 'File signature mismatch, Possibly corrupted.'); } - } else { - $file->setStatus(Resource::STATUS_SUCCESS); } }