diff --git a/app/Http/Controllers/SelfUpdateController.php b/app/Http/Controllers/SelfUpdateController.php index b8b7bdc89eba..ead8e65e861c 100644 --- a/app/Http/Controllers/SelfUpdateController.php +++ b/app/Http/Controllers/SelfUpdateController.php @@ -100,9 +100,10 @@ class SelfUpdateController extends BaseController $this->testWritable(); - $contents = file_get_contents($this->getDownloadUrl()); + copy($this->getDownloadUrl(), storage_path('app/invoiceninja.zip')); - Storage::disk('local')->put('invoiceninja.zip', $contents); + // $contents = file_get_contents($this->getDownloadUrl()); + // Storage::disk('local')->put('invoiceninja.zip', $contents); $file = Storage::disk('local')->path('invoiceninja.zip');