FriendsOfFlarum upload, the intelligent file attachment extension
GreXXL ah I see. Makes sense. I won't use the cleanup function for now. Luckily, my forum has no existing posts as I'm starting a fresh one so I wasn't at risk for any data loss. IMO, maintainer should remove command from original post docs because not everybody will see his follow-up post regarding potential data loss with the cleanup command!
1.5.0
Fixes
- fix: fallback mime detection by @pierres in FriendsOfFlarum/upload362
- fix: missing translations by @IanM in FriendsOfFlarum/upload368
- chore: disable cli cleanup command by @IanM in FriendsOfFlarum/upload375
- fix: upload watermark image does not display in settings FriendsOfFlarum/upload376 by @IanM in FriendsOfFlarum/upload384
A new settings key is used for the watermark image, so if you are already using a watermark, please upload the image again
Screenshots
Features
- feat: admin shared uploads by @IanM in FriendsOfFlarum/upload372
Screenshots:
admin interface
upload modal (with settings, access options, etc)
user media library
Updating
composer require fof/upload:"*"
php flarum migrate
php flarum cache:clear
Thank you to @GreXXL for testing this new feature!
- Edited
IanM Update 1.5.0 :: An error occurred while trying to load this page.
- Downloading fof/byobu (1.3.5)
- Downloading fof/upload (1.5.0)
- Downloading ziiven/flarum-post-number (v0.1.4)
- Upgrading fof/byobu (1.3.4 => 1.3.5): Extracting archive
- Upgrading fof/upload (1.4.7 => 1.5.0): Extracting archive
- Upgrading ziiven/flarum-post-number (v0.1.3 => v0.1.4): Extracting archive
Check page home
flarum.ERROR: InvalidArgumentException: Failed importing jeromegillard-map due to View [jeromegillard-map] not found. in /public_html/vendor/fof/upload/src/Extenders/AddPostDownloadTags.php:52
Disable composer require jeromegillard/map:"*" v0.1.7<< OK: >> NOT ERROR PAGE: An error occurred while trying to load this page.
Litalino you will need to report the error here: https://discuss.flarum.org/d/31732-map-extension-display-a-map-a-gpx-or-a-geojson-file-in-a-post. You can also try running php flarum migrate
and php flarum cache:clear
after installation.
- Edited
GreXXL I ran those 2 lines after updating but still got the error
I have checked files:
JeromeGillard/flarum-mapblob/main/src/Templates/MapTemplate.php
FIX public_html/vendor/jeromegillard/map/src/Templates/MapTemplate.php
https://discuss.flarum.org/d/31732-map-extension-display-a-map-a-gpx-or-a-geojson-file-in-a-post/15
- Edited
IanM After update, when I paste image from clipboard it is uploaded but not inserted into the post content.
Edit: fixed it in FriendsOfFlarum/upload387
After installing Upload on a fresh install of Flarum (beta), the entire flarum instance fails. Here is logs:
[2023-12-17 20:36:37] flarum.ERROR: Error: Class "FoF\Upload\Extend\SvgSanitizer" not found in /var/www/html/REDACTED/vendor/fof/upload/extend.php:112
Stack trace:
#0 /var/www/html/REDACTED/vendor/flarum/core/src/Extension/Extension.php(373): require()
#1 /var/www/html/REDACTED/vendor/flarum/core/src/Extension/Extension.php(139): Flarum\Extension\Extension->getExtenders()
#2 /var/www/html/REDACTED/vendor/flarum/core/src/Extension/ExtensionManager.php(390): Flarum\Extension\Extension->extend()
#3 /var/www/html/REDACTED/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend()
#4 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension\{closure}()
#5 /var/www/html/REDACTED/vendor/flarum/core/src/Foundation/Application.php(329): call_user_func()
#6 /var/www/html/REDACTED/vendor/flarum/core/src/Foundation/Application.php(270): Flarum\Foundation\Application->fireAppCallbacks()
#7 /var/www/html/REDACTED/vendor/flarum/core/src/Foundation/InstalledSite.php(151): Flarum\Foundation\Application->boot()
#8 /var/www/html/REDACTED/vendor/flarum/core/src/Foundation/InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#9 /var/www/html/REDACTED/vendor/flarum/core/src/Http/Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#10 /var/www/html/REDACTED/vendor/flarum/core/src/Http/Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#11 /var/www/html/REDACTED/public/index.php(26): Flarum\Http\Server->listen()
#12 {main}
Flarum core: 1.8.4
PHP version: 8.1.26
MySQL version: 10.3.38-MariaDB-0ubuntu0.20.04.1-log
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, ldap, exif, msgpack, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, memcached, Zend OPcache
+----------------------+---------+--------+
| Flarum Extensions | | |
+----------------------+---------+--------+
| ID | Version | Commit |
+----------------------+---------+--------+
| flarum-flags | v1.8.0 | |
| flarum-approval | v1.8.1 | |
| flarum-tags | v1.8.0 | |
| fof-recaptcha | 1.3.1 | |
| flarum-suspend | v1.8.1 | |
| flarum-subscriptions | v1.8.0 | |
| flarum-sticky | v1.8.0 | |
| flarum-statistics | v1.8.0 | |
| flarum-mentions | v1.8.2 | |
| flarum-markdown | v1.8.0 | |
| flarum-lock | v1.8.0 | |
| flarum-likes | v1.8.0 | |
| flarum-lang-english | v1.8.0 | |
| flarum-emoji | v1.8.0 | |
| flarum-bbcode | v1.8.0 | |
+----------------------+---------+--------+
Base URL: REDACTED
Installation path: /var/www/html/REDCATED
Queue driver: sync
Session driver: file
Mail driver: smtp
Debug mode: off
katos I had to remove it. It's the only one I removed
- Edited
"class not found" errors are usually not specific to any extension but caused by an incomplete Composer installation.
You can try running composer dump-autoload
to force Composer to re-generate the index of classes and php flarum cache:clear
to clear Flarum cache. You can also try removing and re-adding the extension with Composer. Make sure the server and PHP/Composer have enough memory and disk space to run without issues.
clarkwinkelmann I've removed and readded, run those commands, and still having the same issue
1.5.1
- fix: insert BBCode on paste by @rafaucau in FriendsOfFlarum/upload387
- Fix: delete file button confirmation message and prevent selecting file on delete by @rafaucau in FriendsOfFlarum/upload388
Updating
composer require fof/upload:"*"
php flarum cache:clear
- Edited
hello sir, I don't know why but the latest update is causing fof/sitemap not to run properly
1.5.2
- fix: release to upload translation key by @rafaucau in FriendsOfFlarum/upload389
- fix: Remediate issues with Private Shares causing Error 500 by @katos in FriendsOfFlarum/upload390
This should address HarMan also, but we were unable to specifically replicate your error. Please let us know if this release helps or not.
Updating
composer require fof/upload:"*"
php flarum cache:clear
- Edited
hello sir,
thanks for the update, I can confirm that the sitemap route is accessible and the sitemap can be built
- Edited
1.5.3
- fix(routing): use slug for routing on UserPage by @davetodave178 in FriendsOfFlarum/upload391
Updating
composer update fof/upload
php flarum cache:clear