setting update fixed dropzone changes..

This commit is contained in:
Cüneyt Şentürk 2021-05-27 17:52:58 +03:00
parent 6d4400653c
commit d990fa0189

View File

@ -20,6 +20,8 @@ class Settings extends Controller
public $file_keys = ['company.logo', 'invoice.logo']; 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. * Show the form for editing the specified resource.
* *
@ -95,6 +97,11 @@ class Settings extends Controller
continue; continue;
} }
// change dropzone middleware already uploaded file
if (in_array($real_key, $this->uploaded_file_keys)) {
continue;
}
// Process file uploads // Process file uploads
if (in_array($real_key, $this->file_keys)) { if (in_array($real_key, $this->file_keys)) {
// Upload attachment // Upload attachment