1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

fixes for directories

This commit is contained in:
David Bomba 2020-12-04 08:24:34 +11:00
parent 41e39fa9c4
commit bc621aa01a
4 changed files with 5 additions and 5 deletions

View File

@ -146,7 +146,7 @@ class CreateEntityPdf implements ShouldQueue
->build();
//todo - move this to the client creation stage so we don't keep hitting this unnecessarily
info("make dir => {$path}");
//info("make dir => {$path}");
//Storage::makeDirectory($path, 0775);
$pdf = null;

View File

@ -37,9 +37,9 @@ class UploadAvatar implements ShouldQueue
{
//make dir
info("avatar dir creation => ". $this->directory);
// info("avatar dir creation => ". $this->directory);
Storage::makeDirectory($this->directory, 0775);
// Storage::makeDirectory($this->directory, 0775);
$tmp_file = sha1(time()).'.png';

View File

@ -84,7 +84,7 @@ class GenerateDeliveryNote
->design($template)
->build();
Storage::makeDirectory($this->invoice->client->invoice_filepath(), 0775);
// Storage::makeDirectory($this->invoice->client->invoice_filepath(), 0775);
$pdf = $this->makePdf(null, null, $maker->getCompiledHTML());

View File

@ -77,7 +77,7 @@ class Phantom
$phantom_url = "https://phantomjscloud.com/api/browser/v2/{$key}/?request=%7Burl:%22{$url}%22,renderType:%22pdf%22%7D";
$pdf = CurlUtils::get($phantom_url);
Storage::makeDirectory($path, 0775);
// Storage::makeDirectory($path, 0775);
$instance = Storage::disk(config('filesystems.default'))->put($file_path, $pdf);