Releases: outl1ne/nova-media-field
1.4.0
Changed
- Updated packages
Added
- Added collection parameter to
findFiles
request.- MediaController@findFiles will now properly use collection to search files.
2.0.0-alpha.5
Fixed 2 instances where config key was invalid when checking if duplication check is enabled.
This release should allow implementing mult-disk support if project requires it. All core logic should
be overrideable.
Added
-
New config option
nova-media-field.media_model
allows overriding original Media model. New model
must be extended from the original. -
Local
getDisk
method for Media model to use.
2.0.0-alpha.4
Use getDisk
method in Media model for URL generators
2.0.0-alpha.3
Fix exception when uploading from index view
2.0.0-alpha.2
Fixes paths for media rows because of breaking change introduced in v2. Replaces public/media/*
with media/*
.
Added
- Command
media:strip-public-prefix-from-path
Manual changes required
Run command php artisan media:strip-public-prefix-from-path
to fix media field "path" column values.
2.0.0-alpha.1
Adds a feature that checks for duplicate media entry by generating has based on first megabyte
of file. This will not work on existing images
This update should allow using any file driver that is supported in Laravel. Please review media config file.
Changed
- [Breaking change] Storage driver default in nova media field config has been changed from
config('filesystems.default')
toenv('MEDIA_LIBRARY_DRIVER', 'public')
- [Breaking change]
Media
modelgetUrlAttribute
,getWebpUrlAttribute
andgetImageSizesAttribute
methods has been fixed by removing URL prefixing.
Updated
MediaHandler
classcreateFrom...
methods has been updated to supportresolve_duplicates
. When finding a duplicate
media item then these methods will return existing instance of that image instead.
Added
- New
file_hash
column, will be used to store original file hash to check for duplicates resolve_duplicates
key to media field config file. If enabled it will not create a new entry when existing media item is found.
Manual changes required
- run
php artisan migrate
to add the newfile_hash
column - default filesystem driver for media field was changed in config file, please review these settings
1.3.11
1.3.10
Changed
- Fixed Postgres support (thanks to @LINKeRxUA)
- Make thumbnail larger in media edit view
- Updated packages