-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add configuration option to allow more file types in the _media directory #39
Comments
Implemented. You can now specify comma separated values in the config. Here are the defaults: config('hyde.media_extensions', 'png,svg,jpg,jpeg,gif,ico,css,js')) Here is how the glob pattern is now loaded in the CollectionService for reference: return glob(Hyde::path('_media/*.{'.str_replace(' ', '',
config('hyde.media_extensions', 'png,svg,jpg,jpeg,gif,ico,css,js')).'}'), GLOB_BRACE
); |
caendesilva
added a commit
that referenced
this issue
Jun 25, 2022
## v0.43.0-beta - 2022-06-25 - File-based Collections ### Added - Added configuration option `hyde.media_extensions` to allow you to specify additional comma separated media file types. #39 - Adds a safer config option `hyde.output_directory` for customizing the output directory - Adds a file-based way to create and interact with collections, https://hydephp.com/docs/master/collections ### Removed - Removed the `--pretty` build command option which was deprecated in v0.25.x - Removed deprecated internal AssetManager trait which was replaced with the Asset facade ### Fixed - HydeRC: Fixes a bug in the auxiliary exception handler leading to unintentional recursion causing out of memory errors in both the browser and the PHP server.
This was referenced Jun 25, 2022
caendesilva
added a commit
that referenced
this issue
Dec 14, 2024
caendesilva
added a commit
that referenced
this issue
Dec 15, 2024
caendesilva
added a commit
that referenced
this issue
Dec 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As Hyde strives to be safe by default, currently the glob pattern for
_media
file transfers is set to "safe" files. However, it would be nice to have the config option to expand on this.The text was updated successfully, but these errors were encountered: