From 57c83f8b21e8ec207c03136e80cf02f5156a0c8d Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Tue, 22 Feb 2022 06:53:20 +0000 Subject: [PATCH] fix upload using write --- app/executor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/executor.php b/app/executor.php index a1c798a3bb..7b2fdf8f22 100644 --- a/app/executor.php +++ b/app/executor.php @@ -268,7 +268,7 @@ App::post('/v1/runtimes') $outputPath = $destinationDevice->getPath(\uniqid() . '.' . \pathinfo('code.tar.gz', PATHINFO_EXTENSION)); $buffer = $localDevice->read($tmpBuild); - if(!$destinationDevice->upload($buffer, $outputPath)) { + if(!$destinationDevice->write($outputPath, $buffer, $localDevice->getFileMimeType($tmpBuild))) { throw new Exception('Failed to move built code to storage', 500); };