1.6.0
This release starts the process to move away from hard coding the uploaded image URL within the BBCode template, making it possible to move uploaded assets between locally hosted on the forum to other CDN scenarios. We maintain the ability to use URL
in the template (this is now considered deprecated) and instead refer to the upload by it's unique identifier. In future updates, each adapter configured will have it's own URL prefix or host configured. For now, the UUID
parameter (if present in the BBCode) will be used to find the requested file. If this is not present (ie existing uploads) the URL
parameter will still be used, therefore retaining backwards compatibility.
We also now introduce the (optional) ability to set ALT
text for the image within the BBCode.
Usage example:
[upl-image-preview uuid=3ce8b568-8015-40c2-a8d6-5c6c8c1fdf2a url=THE_URL alt=MY_ALT_TEXT_FOR_THIS_IMAGE]
When uploading new images, the new format will be used. Existing images will use the old format exactly as before. The ALT
field is optional and may be omitted.
What's Changed
Full Changelog: FriendsOfFlarum/upload1.5.8 → 1.6.0
Upgrading
composer require fof/upload:"*"
php flarum cache:clear
php flarum assets:publish