π Yii2Cloudinary v1.0.1
This release introduces several powerful improvements to the upload flow, metadata persistence, and UI behavior. It's fully backward-compatible and focused on enabling more dynamic media handling in real-world projects.
β¨ Highlights
- β
Support for passing custom metadata (
customPayload) through the upload process - β
Upload Widget now supports
reloadAfterCloseand passes payload to backend - β
Enhanced relation handling via updated
relationSaverMapsignature - β Improved error logging and handling across upload flow
- β
Translatable alt/title support using
getTranslation() - β Updated documentation and database schema for multilingual metadata
π§ Added
customPayloadoption on bothupload()anduploadWidget()methodsreloadAfterCloseflag to trigger a page reload after widget closesCloudinaryMedia::getTranslation($attribute, $lang = null)helper method
π§± Changed
cloudinary_media_desc.title: increased to 255 characterscloudinary_media_desc.description: changed toTEXT- Improved logging around Cloudinary uploads, DB persistence, and relation resolution
- Widget JS now injects the full payload into the upload handler call
π Docs Updated
README.md: usage examples, widget payload options, relation handlingrender-responsive-image.md: tips for localized alt textupload-widget-localization.md: clarified override behavior + extra widget optionscloudinary-media-migrations.md: updated schema for multilingual fields
π§ͺ Migration
If you've already applied the migration file, you may need to manually alter your table:
ALTER TABLE cloudinary_media_desc
MODIFY title VARCHAR(255),
MODIFY description TEXT;π§Ύ Composer
composer require bgillieron/yii2-cloudinary:^0.3Thanks for using Yii2Cloudinary!
Feel free to report bugs or ideas in Issues.