Hi everyone - this is a very small extension that I set up really as a test to go through the whole process of creating a new Flarum extension, a basic setting in admin, validation, etc, etc. I called it Avatar Tools even though it only does one thing at the moment and that is allow you to override the default upload file size limit on avatars. I also wanted to test going through the full cycle of publishing an extension to GitHub, Packagist, documenting it, creating this thread, etc, as I am just starting out with Open Source and Flarum. So it's pretty basic but, hopefully someone can use it.
Avatar Tools
![Static Badge](https://img.shields.io/badge/flarum-v1.8.5-%23e7672e?logo=flarum)
Welcome to Avatar Tools Flarum extension! Yes, it only does one thing... for now. This extension allows you to change the avatar upload file size limit directly from the admin settings, so you can permit larger files to be uploaded.
For feature requests or suggestions, feel free to contact me on the Flarum forum. Your feedback is appreciated and I'm open to expanding the functionality of this extension based on user needs.
Installation
Install with composer:
composer require madeyedeer/avatar-tools
Updating
composer update madeyedeer/avatar-tools
php flarum migrate
php flarum cache:clear
Note: Some releases may require a version to be specified when updating, so check the release notes on the Flarum forum for specific instructions.
Usage
Change the avatar upload file size limit in admin settings by entering a value in MB.
If no value is entered, the default value of 2MB will be used. Keep in mind that the actual limit is determined by your server's PHP settings. If your PHP configuration allows for larger file uploads, Avatar Tools will enable you to set a higher limit within Flarum's settings, up to that server limit.
![Settings](https://i.ibb.co/xhyqD8m/settings.png)
Links