awcodes / filament-curator

A media picker plugin for Filament Panels.
MIT License
343 stars 89 forks source link

Curation Create: More types selectable than allowed #307

Closed KriKrus closed 1 year ago

KriKrus commented 1 year ago

Filament Version

3.0.55

Plugin Version

3.0.1

PHP Version

8.2.10

Problem description

We have the config/curator.php published and restricted the accepted_file_typesto only jpeg and png. But in the create curation view it's still possible to create a curation in a different format (e.g. webp). The options are hardcoded: https://github.com/awcodes/filament-curator/blob/3.x/resources/views/components/modals/curator-curation.blade.php#L63

Expected behavior

It would be good if the creation of curations would respect global settings

Steps to reproduce

  1. Install curator
  2. Publish the config
  3. remove webp from allowed file types
  4. visit "create curation" view for a file

Reproduction repository

No response

Relevant log output

No response

KriKrus commented 1 year ago

Thank you for the fast changes! :+1: