From 336358d7f376c750cfc470206b19f9e9dd36fab6 Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Thu, 26 Feb 2026 10:39:05 +0000 Subject: [PATCH] fix: convert activate param to string for multipart form-data PHP booleans become '1'/'' in multipart/form-data but the API expects 'true'/'false' strings. The non-chunked function deployment path was already correct; this fixes the chunked function deployment and both site deployment paths. --- src/Migration/Destinations/Appwrite.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Migration/Destinations/Appwrite.php b/src/Migration/Destinations/Appwrite.php index 6b730a1844..a128c73d0e 100644 --- a/src/Migration/Destinations/Appwrite.php +++ b/src/Migration/Destinations/Appwrite.php @@ -1508,7 +1508,7 @@ class Appwrite extends Destination [ 'functionId' => $functionId, 'code' => new \CURLFile('data://application/gzip;base64,' . base64_encode($deployment->getData()), 'application/gzip', 'deployment.tar.gz'), - 'activate' => $deployment->getActivated(), + 'activate' => $deployment->getActivated() ? 'true' : 'false', 'entrypoint' => $deployment->getEntrypoint(), ] ); @@ -1686,7 +1686,7 @@ class Appwrite extends Destination [ 'siteId' => $siteId, 'code' => new \CURLFile('data://application/gzip;base64,' . base64_encode($deployment->getData()), 'application/gzip', 'deployment.tar.gz'), - 'activate' => $deployment->getActivated(), + 'activate' => $deployment->getActivated() ? 'true' : 'false', ] ); @@ -1710,7 +1710,7 @@ class Appwrite extends Destination [ 'siteId' => $siteId, 'code' => new \CURLFile('data://application/gzip;base64,' . base64_encode($deployment->getData()), 'application/gzip', 'deployment.tar.gz'), - 'activate' => $deployment->getActivated(), + 'activate' => $deployment->getActivated() ? 'true' : 'false', ] );