Skip to content

Commit

Permalink
Update 'accept' attribute to 'image/*' for broader format support in …
Browse files Browse the repository at this point in the history
…VichImageType

Adjust the default 'accept' attribute in VichImageType to 'image/*' to encompass all image formats, providing a more inclusive and future-proof default setting.
  • Loading branch information
Erdal committed Nov 9, 2023
1 parent 705c3e0 commit 6266380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Type/VichImageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function configureOptions(OptionsResolver $resolver): void
'imagine_pattern' => null,
'storage_resolve_method' => self::STORAGE_RESOLVE_URI,
'attr' => [
'accept' => 'image/png,image/jpeg,image/gif,image/webp',
'accept' => 'image/*',
],
]);

Expand Down

0 comments on commit 6266380

Please sign in to comment.