FriendsOfFlarum upload, the intelligent file attachment extension
luceos I have run with "Composer Require FOF / UPLOAD: 0.14.0-Beta".
Now its working fine. Thank you!
It works on beta 16 or it's better to wait?
- Edited
hello, i changed the domain for flarum on yunohost server. all went well, but photos are gone. is it, the links are hardlinked? and what can i do?
thank you very much for this wonderful flarum
thx, but in config file the domain is changed already, and also cache clear is done.
ju_ri try removing fof/upload extension and then use this extension https://extiverse.com/extension/zerosonesfun/patch-fof-upload
once everything works fine, you can reverse this action.
edit: Better is to wait for an expert opinion
MohdKhan no - there is a beta version compatible with beta 16 (https://discuss.flarum.org/d/4154-friendsofflarum-upload-the-intelligent-file-attachment-extension/1449)
- Edited
ok, thx for help but i went for another solution. since in database the media files are hardlinked, i replaced all "https://old-domain. de" to the new one direktly in the database.
that works.
perhaps devs can change this hardlinked database storage instead of relative links? in case of server or domain change this makes it much easier.
thank you for flarum, its wonderful
IanM this update is so good I use Beta 15 and I think there is a bug. Media library show images as duplicated. Their links url are same but it shows more than one. Also I would like to offer a new feature for next releases. May be added undo option on toast notification appear after hide image from media library.
ju_ri URL is hard-coded because it's easier to work with multiple drivers. In case you use an external host like Amazon S3 for your images, then you usually don't need to change the links even if your forum changed domain.
There's no built-in solution for moving domains at the moment. One option like you did is to manually edit the database. Another would be to setup redirects from the old domain for the new domain, but that's more of a temporary solution if you planned to take all the files to the new host anyway.
Does this extension also remove exif data from uploaded images? Wouldn't want anyone getting doxxed because of that.
fakruzaruret Random Ted Kaczynski in the middle made me laugh
Omnivorous if you enable image resizing, I think it will. By default it probably doesn't.
Please do your own tests to verify this if it's important to you, as I'm not 100% sure.
clarkwinkelmann I did not change domain. I use the same domain. I dont know that does blog extension cause this? I use local upload manager for images.
[deleted]
Omnivorous Random Ted Kaczynski in the middle made me laugh
And me No manifesto though...
fakruzaruret I was replying to the other report above you.
I'm not sure what is happening to you. Is there any javascript error in the browser console? Are you able to load more pages at the bottom?
- Edited
clarkwinkelmann Sorry for misunderstanding
yes load more button works. some images are shown more than one after click button. I dont know the reason.
There is no any error. There are only some violations
- Edited
Fixed - see bottom of post of answer
I seem to be having trouble getting this extension to work.
I have enabled debugging, and get the error below.
For the mime type file i have used the recommended text:
(video\/(3gpp|mp4|mpeg|quicktime|webm))|(audio\/(aiff|midi|mpeg|mp4))|(image\/(gif|jpeg|jpg|png))|(application\/(x-(7z|rar|zip)-compressed|zip|arj|x-(bzip2|gzip|lha|stuffit|tar)|pdf))
I have installed flarum on a namecheap shared hosting server, and have already made sure the php settings have a large max file upload, and created a php.ini file in the root directory of the flarum install with the following just incase.
post_max_size = 125M
upload_max_filesize = 100M
I would appreciate any advice you have on how i can fix this
Thanks
Alastair Nixon
I realised I had the wrong version of FoF Upload installed. This was because 'composer require fof/upload:@beta ' installed version 0.12.10. so i used 'composer require fof/upload:0.14.0-beta' instead. Feel free to delete this post if you wish, or leave it for others to see.
The plugin was working on Beta15 however since upgrading to Beta16 I have been having issues.
Checking the Flarum Log there are no errors reported. Checking NGINX log there are no errors reported.
Checking everything else reloading NGINX and clearing composer cache, make no difference.
Every file upload results in this
Composer.json
{
"name": "flarum/flarum",
"description": "Delightfully simple forum software.",
"type": "project",
"keywords": [
"forum",
"discussion"
],
"homepage": "https://flarum.org/",
"license": "MIT",
"authors": [
{
"name": "Franz Liedke",
"email": "franz@develophp.org"
},
{
"name": "Daniel Klabbers",
"email": "daniel@klabbers.email",
"homepage": "https://luceos.com"
},
{
"name": "David Sevilla Martin",
"email": "me+flarum@datitisev.me",
"homepage": "https://datitisev.me"
},
{
"name": "Clark Winkelmann",
"email": "clark.winkelmann@gmail.com",
"homepage": "https://clarkwinkelmann.com"
},
{
"name": "Matthew Kilgore",
"email": "matthew@kilgore.dev"
},
{
"name": "Alexander (Sasha) Skvortsov",
"email": "askvortsov@flarum.org"
}
],
"support": {
"issues": "https://github.com/flarum/core/issues",
"source": "https://github.com/flarum/flarum",
"docs": "https://flarum.org/docs/"
},
"require": {
"askvortsov/flarum-trust-levels": "",
"flarum/approval": "",
"flarum/bbcode": "",
"flarum/core": "0.1.0",
"flarum/emoji": "",
"flarum/flags": "",
"flarum/lang-english": "",
"flarum/likes": "",
"flarum/lock": "",
"flarum/markdown": "",
"flarum/mentions": "",
"flarum/nicknames": "",
"flarum/pusher": "",
"flarum/statistics": "",
"flarum/sticky": "",
"flarum/subscriptions": "",
"flarum/suspend": "",
"flarum/tags": "",
"fof/analytics": "",
"fof/byobu": "",
"fof/disposable-emails": "",
"fof/drafts": "",
"fof/filter": "",
"fof/follow-tags": "",
"fof/formatting": "",
"fof/frontpage": "",
"fof/ignore-users": "",
"fof/oauth": "",
"fof/polls": "",
"fof/profile-image-crop": "",
"fof/reactions": "",
"fof/realtimedate": "",
"fof/recaptcha": "",
"fof/share-social": "",
"fof/spamblock": "",
"fof/stopforumspam": "",
"fof/upload": "",
"fof/user-directory": "",
"fof/username-request": "",
"kyrne/shout": "",
"v17development/flarum-seo": ""
},
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "beta",
"prefer-stable": true
}
Flarum Info
Flarum core 0.1.0-beta.16
PHP version: 7.4.3
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, Zend OPcache
+-------------------------+------------------+--------+
| Flarum Extensions | | |
+-------------------------+------------------+--------+
| ID | Version | Commit |
+-------------------------+------------------+--------+
| flarum-subscriptions | v0.1.0-beta.16 | |
| flarum-tags | v0.1.0-beta.16 | |
| flarum-sticky | v0.1.0-beta.16 | |
| fof-upload | 0.12.10 | |
| flarum-bbcode | v0.1.0-beta.16 | |
| flarum-emoji | v0.1.0-beta.16 | |
| flarum-lang-english | v0.1.0-beta.16 | |
| flarum-flags | v0.1.0-beta.16 | |
| flarum-likes | v0.1.0-beta.16 | |
| flarum-lock | v0.1.0-beta.16 | |
| flarum-markdown | v0.1.0-beta.16.1 | |
| flarum-mentions | v0.1.0-beta.16 | |
| flarum-statistics | v0.1.0-beta.16 | |
| flarum-suspend | v0.1.0-beta.16 | |
| fof-reactions | 0.6.0 | |
| fof-ignore-users | 0.3.1 | |
| fof-user-directory | 0.6.0 | |
| v17development-seo | v1.7.2 | |
| fof-analytics | 0.12.0 | |
| fof-spamblock | 0.5.0 | |
| fof-disposable-emails | 0.3.0 | |
| fof-formatting | 0.4.0 | |
| fof-polls | 0.3.2 | |
| askvortsov-trust-levels | v0.2.1 | |
| fof-byobu | 0.6.1 | |
| fof-username-request | 0.5.0 | |
| fof-follow-tags | 0.7.2 | |
| fof-profile-image-crop | 0.3.0 | |
| fof-drafts | 0.4.0 | |
| fof-stopforumspam | 0.5.0 | |
| fof-realtimedate | 0.3.0 | |
| fof-frontpage | 0.3.0 | |
| fof-share-social | 0.3.0 | |
+-------------------------+------------------+--------+