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

[5.x] Add allowed_extensions option to Files fieldtype #10998

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request adds an allowed_extensions config option to the Files fieldtype, allowing you to override which file extensions are allowed.

For example: in the case of the Importer addon, I want to allow .csv and .xml files to be uploaded, but not any other file extensions.

@jasonvarga jasonvarga merged commit 8ebbe61 into 5.x Oct 24, 2024
17 checks passed
@jasonvarga jasonvarga deleted the add-allowed-extensions-option-to-files-fieldtype branch October 24, 2024 19:56
duncanmcclean added a commit to statamic/importer that referenced this pull request Oct 28, 2024
It introduces a new `allowed_extensions` config option to the Files fieldtype: statamic/cms#10998
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

Successfully merging this pull request may close these issues.

2 participants