Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use config for acceptedFileTypes in MediaResource #5

Closed
jeffgreco13 opened this issue Jun 22, 2022 · 1 comment
Closed

Use config for acceptedFileTypes in MediaResource #5

jeffgreco13 opened this issue Jun 22, 2022 · 1 comment

Comments

@jeffgreco13
Copy link

The config file has an option to set the acceptedFileTypes but the component still sets the types explicitly within MediaResource. Possible fix:

Update:

->acceptedFileTypes([
    "image/jpeg",
    "image/png",
    "image/webp",
    "image/svg+xml",
    "application/pdf",
])

To:

->acceptedFileTypes(config('filament-curator.accepted_file_types'))
@awcodes awcodes mentioned this issue Jun 22, 2022
@awcodes
Copy link
Owner

awcodes commented Jun 22, 2022

This has been released in https://github.com/awcodes/filament-curator/releases/tag/v0.2.5

@awcodes awcodes closed this as completed Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants