Update time!
The migration over from Flagrow to FriendsOfFlarum is now complete. This update also brings fixes to multiple small bugs that were discovered over the last year.
Things that may break
- If you used the OVH driver, it's no longer supported.
- If you use a language other than English, you might want to wait until your language pack translates the extension.
- If you have been using the extension for a long time, all links to files uploaded in versions prior to 0.6.0 (before November 2017) will disappear and you will see just
$file-<id>
or $image-<id>
in your posts. You can edit the posts and save them and that old tag will be automatically replaced with the new bbcode. If you need a tool to perform a mass update, please let us know. We'll only implement it if it's actually needed.
If you didn't have Flagrow Upload installed previously
Just install like any other extension:
composer require fof/upload
If you previously had Flagrow Upload installed, even if it was disabled
To upgrade from the old extension to the new one:
composer require flagrow/upload
composer show flagrow/upload # You should see "versions: * 0.7.1" on the 4th line of output
php flarum migrate
composer require fof/upload
Composer should let you know that flagrow/upload
has been automatically removed.
Enable the new extension in the admin panel.
Your existing configuration and uploads meta will be migrated to FoF Upload automatically.
The same file locations on the disk are used by FoF Upload, it means the files don't need to be moved.
Changelog
Here's the complete changelog for this release:
- Moved to FriendsOfFlarum namespace
- Packagist package is now
fof/upload
- Extension developers: the PHP namespace for events is now
FoF\Upload
instead of Flagrow\Upload
- Language pack maitainers: Translations namespace is now
fof-upload
instead of flagrow-upload
. Also there have been a few changes to the strings
- Removed non-English translations
- Language pack maintainers can copy the old translations from the previous commit (don't forget to update the namespace and add the new strings)
- Removed OVH driver because the third-party library we used has been abandonned and deleted by the author
- Removed the old pre-0.6 deprecated file templates from Flagrow Upload. If you see
$file-<stuff>
or $image-<stuff>
in your old posts, you can edit the post (change at least one character) and save it to automatically migrate the old tags to the new file bbcode
- Fix the bbcode not being automatically parsed when the extension was just installed (the formatter cache is now cleared when the extension is enabled/disabled)
- Fixed bugs related to copy-pasting and drag-and-drop not working the second time the composer is opened
- Added "uploading" indicator in the upload button
- Made the whole of the download button / image preview clickable (previously only the icon would trigger the file download)
- Removed a bunch of unused code, and moved listeners to the new Flarum extenders
Let us know if you have any question!