From d990fa018969c57f296c798b2cd235061c47c995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Thu, 27 May 2021 17:52:58 +0300 Subject: [PATCH] setting update fixed dropzone changes.. --- app/Http/Controllers/Settings/Settings.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Http/Controllers/Settings/Settings.php b/app/Http/Controllers/Settings/Settings.php index bc8bbc49d..4a3a8d554 100644 --- a/app/Http/Controllers/Settings/Settings.php +++ b/app/Http/Controllers/Settings/Settings.php @@ -20,6 +20,8 @@ class Settings extends Controller public $file_keys = ['company.logo', 'invoice.logo']; + public $uploaded_file_keys = ['company.uploaded_logo', 'invoice.uploaded_logo']; + /** * Show the form for editing the specified resource. * @@ -95,6 +97,11 @@ class Settings extends Controller continue; } + // change dropzone middleware already uploaded file + if (in_array($real_key, $this->uploaded_file_keys)) { + continue; + } + // Process file uploads if (in_array($real_key, $this->file_keys)) { // Upload attachment