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