Refactor SettingForm Schema: Removed the image validation from the file input field in the SettingForm schema, ensuring that only specified file types are accepted for upload. This change enhances the flexibility of file handling in the settings management.
This commit is contained in:
@@ -130,7 +130,6 @@ class SettingForm
|
||||
->helperText(__('settings.value_helper'))
|
||||
->required()
|
||||
->visible(fn (Get $get) => $get('type') === 'file')
|
||||
->image()
|
||||
->disk('public')
|
||||
->directory('settings')
|
||||
->acceptedFileTypes(['image/*', 'application/pdf', 'text/*'])
|
||||
|
||||
Reference in New Issue
Block a user