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