mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 03:54:36 -04:00
fixes for directories
This commit is contained in:
parent
41e39fa9c4
commit
bc621aa01a
@ -146,7 +146,7 @@ class CreateEntityPdf implements ShouldQueue
|
|||||||
->build();
|
->build();
|
||||||
|
|
||||||
//todo - move this to the client creation stage so we don't keep hitting this unnecessarily
|
//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);
|
//Storage::makeDirectory($path, 0775);
|
||||||
|
|
||||||
$pdf = null;
|
$pdf = null;
|
||||||
|
@ -37,9 +37,9 @@ class UploadAvatar implements ShouldQueue
|
|||||||
{
|
{
|
||||||
|
|
||||||
//make dir
|
//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';
|
$tmp_file = sha1(time()).'.png';
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ class GenerateDeliveryNote
|
|||||||
->design($template)
|
->design($template)
|
||||||
->build();
|
->build();
|
||||||
|
|
||||||
Storage::makeDirectory($this->invoice->client->invoice_filepath(), 0775);
|
// Storage::makeDirectory($this->invoice->client->invoice_filepath(), 0775);
|
||||||
|
|
||||||
$pdf = $this->makePdf(null, null, $maker->getCompiledHTML());
|
$pdf = $this->makePdf(null, null, $maker->getCompiledHTML());
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ class Phantom
|
|||||||
$phantom_url = "https://phantomjscloud.com/api/browser/v2/{$key}/?request=%7Burl:%22{$url}%22,renderType:%22pdf%22%7D";
|
$phantom_url = "https://phantomjscloud.com/api/browser/v2/{$key}/?request=%7Burl:%22{$url}%22,renderType:%22pdf%22%7D";
|
||||||
$pdf = CurlUtils::get($phantom_url);
|
$pdf = CurlUtils::get($phantom_url);
|
||||||
|
|
||||||
Storage::makeDirectory($path, 0775);
|
// Storage::makeDirectory($path, 0775);
|
||||||
|
|
||||||
$instance = Storage::disk(config('filesystems.default'))->put($file_path, $pdf);
|
$instance = Storage::disk(config('filesystems.default'))->put($file_path, $pdf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user