From 0e1dfcf408c0c003467eb84ef1fc6932d394fa2d Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 24 Apr 2018 13:20:15 -0700 Subject: [PATCH] Changed directory for audits image dir --- app/Http/Controllers/AssetsController.php | 4 ++-- storage/private_uploads/audits/.gitignore | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 storage/private_uploads/audits/.gitignore diff --git a/app/Http/Controllers/AssetsController.php b/app/Http/Controllers/AssetsController.php index 03b13ca801..05a38623cf 100755 --- a/app/Http/Controllers/AssetsController.php +++ b/app/Http/Controllers/AssetsController.php @@ -1020,7 +1020,7 @@ class AssetsController extends Controller $file = $log->get_src('assets'); if ($log->action_type =='audit') { - $file = $log->get_src('assets/audits'); + $file = $log->get_src('audits'); } $filetype = Helper::checkUploadIsImage($file); @@ -1328,7 +1328,7 @@ class AssetsController extends Controller if ($request->hasFile('image')) { $file = $request->file('image'); try { - $destinationPath = config('app.private_uploads').'/assets/audits'; + $destinationPath = config('app.private_uploads').'/audits'; $extension = $file->getClientOriginalExtension(); $filename = 'audit-'.$asset->id.'-'.str_slug(basename($file->getClientOriginalName(), '.'.$extension)).'.'.$extension; $file->move($destinationPath, $filename); diff --git a/storage/private_uploads/audits/.gitignore b/storage/private_uploads/audits/.gitignore new file mode 100755 index 0000000000..c96a04f008 --- /dev/null +++ b/storage/private_uploads/audits/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file