clarkwinkelmann hello again. Do you have yet another idea how my issue a few posts up can be resolved or what might cause it? I'm still stuck.
FriendsOfFlarum upload, the intelligent file attachment extension
Cornelius can you share the output of your php flarum info
?
clarkwinkelmann
Flarum core 0.1.0-beta.13
PHP version: 7.4.3
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, imap, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache
+---------------------------+------------------+--------+
| Flarum Extensions | | |
+---------------------------+------------------+--------+
| ID | Version | Commit |
+---------------------------+------------------+--------+
| flarum-approval | v0.1.0-beta.13 | |
| flarum-bbcode | v0.1.0-beta.12 | |
| flarum-emoji | v0.1.0-beta.13 | |
| flarum-flags | v0.1.0-beta.13 | |
| flarum-likes | v0.1.0-beta.13 | |
| flarum-lock | v0.1.0-beta.13 | |
| flarum-markdown | v0.1.0-beta.13 | |
| flarum-mentions | v0.1.0-beta.13 | |
| flarum-statistics | v0.1.0-beta.13 | |
| flarum-sticky | v0.1.0-beta.13 | |
| flarum-subscriptions | v0.1.0-beta.13 | |
| flarum-suspend | v0.1.0-beta.13 | |
| flarum-tags | v0.1.0-beta.13 | |
| cbmainz-de | 0.12.1 | |
| spookygames-auth-keycloak | 0.1.0-beta.8.1-5 | |
| fof-upload | 0.9.2 | |
| fof-user-directory | 0.3.4 | |
| fof-links | 0.3.0 | |
+---------------------------+------------------+--------+
Base URL: https://forum.mydomain.de
Installation path: /var/www/mydomain.de/flarum
Debug mode: ON
Don't forget to turn off debug mode! It should never be turned on in a production system.
tnx, it works!
clarkwinkelmann
So I don't know what I changed, but apparently it is working now. The only thing I can remember that I disabled the "spookygames-auth-keycloak" extension. And even after turning it on again it still worked. So it is propably unrelated. I will report back again if I run into the issue again. I am really curious what the cause and what the solution has been.
- Edited
I'm encountering an error, even after I have increased the upload size in the configuration file:
L1fe I'm unable to read the content. Imgur only appears to render a 223x603 px image.
You can paste terminal output right here on the forum or use a pastebin-or-similar website to send text.
Version 0.10.0 !
- Fix for Imgur upload
- Image max width now also applies to max height
- New "just URL" template, enables the use of AutoImage, AutoVideo, or other extensions to work with Upload out of the box
- Breaking changes for custom templates. Check out the new wiki page about templates
- Now using interfaces instead of an abstract class
- Templates no longer need to be a new bbcode
Update with:
composer require fof/upload
php flarum migrate
php flarum cache:clear
- Edited
clarkwinkelmann New "just URL" template, enables the use of AutoImage, AutoVideo, or other extensions to work with Upload out of the box
This is awesome! It's going to work much nicer with audio uploads, which will be great on my forum, thanks!
[deleted]
One thing I noticed is that if an image is attached to the post, then that post is subsequently gets deleted either by the user, or a moderator, the uploaded image or file remains.
Is there any way that this particular file in question can be deleted at the same time ?
In terms of genesis, I'm thinking of inappropriate content for example.
[deleted] Is there any way that this particular file in question can be deleted at the same time ?
My original intention was to be able to do that However, I never had the time to implement that actual logic. If I'm not wrong, the relation to the post should still be available in the database. So functionality like this is possible.
The extension includes database columns to store the discussion or post relation, but this was never implemented, I those columns are always null
.
There is this existing issue about it FriendsOfFlarum/upload154
[deleted]
clarkwinkelmann @luceos so in theory, it can be added ? I think this makes sense. Surely, if you intend to delete the post, you'd want the uploaded files gone too ?
[deleted] of course, in theory this can be added. But there's a lot of work remaining. Also all existing files will be orphans unless we write some system to parse back in time.
I'm not sure all platforms immediately delete files? For example Discord uploads can easily be used outside of Discord and I think they are not deleted imediately if you delete the post?
The biggest challenge is when adding files to a new discussion or post, because we need some way of temporarily having the file without relationship, then link them together when posted. Right now Upload does nothing to validate that the files you have in the post content were uploaded during the edit of that post. You could easily link other files already uploaded, and we'd need to decide what to do with those as well.
[deleted]
clarkwinkelmann Good comments. I understand completely. It's a nice to have rather than essential at this stage. I could simply remove the file in question manually.
- Edited
I'm having a problem. I'm migrating my Flarum and trying to install fof/upload gives me this:
Using version ^0.10.0 for fof/upload
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for fof/upload ^0.10.0 -> satisfiable by fof/upload[0.10.0].
- fof/upload 0.10.0 requires guzzlehttp/guzzle ^6.0 -> satisfiable by guzzlehttp/guzzle[6.0.0, 6.0.1, 6.0.2, 6.1.0, 6.1.1, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.3.0, 6.3.1, 6.3.2, 6.3.3, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.
I have a similar problem with push notifications. I can't install fof/upload:0.8.2 (which doesn't have the dependency) because it doesn't work on Flarum v0.1.0-beta.13
I've reinstalled everything now and it seems to install normally, but not when I migrate. Is there some sort of a bug when copying over assets?
Yalfoosh do you have a line about guzzlehttp/guzzle
in your composer.json
? Can you maybe share the output of composer why guzzlehttp/guzzle
?
What do you mean with the migrate issue? If you're coming from the Flagrow version, make sure you follow the update instructions. If you have an error message, please share it.
clarkwinkelmann do you have a line about guzzlehttp/guzzle in your composer.json?
Nope
clarkwinkelmann Can you maybe share the output of composer why guzzlehttp/guzzle ?
I have since fixed this, but these extensions don't even install it. It shouldn't ever be installed. By the way, I think it's because the guzzle that's packed with flarum is ^7.0. fof/upload wants ^6.0. This conflict shouldn't happen at all, it should work just fine! And it does usually.
And after a full reinstall (well, for the 3rd time) it does work. But I reproduced it on the 2nd reinstall and am suspecting it has something to do with the order of my installs.
clarkwinkelmann What do you mean with the migrate issue? If you're coming from the Flagrow version, make sure you follow the update instructions. If you have an error message, please share it.
I'm migrating my forum from 1 machine to another. Basically, upload can be installed on vanilla flarum, as expected. But it failed on me when I tried to do
composer require askvortsov/flarum-copy-links \
askvortsov/flarum-discussion-templates \
clarkwinkelmann/flarum-ext-circle-groups \
clarkwinkelmann/flarum-ext-emojionearea \
clarkwinkelmann/flarum-ext-group-invitation \
clarkwinkelmann/flarum-ext-who-read \
dem13n/nickname-changer \
fof/byobu \
fof/drafts \
fof/follow-tags \
fof/formatting \
fof/forum-statistics-widget \
fof/gamification \
fof/ignore-users \
fof/linguist \
fof/links \
fof/merge-discussions \
fof/polls \
fof/profile-image-crop \
fof/reactions \
fof/realtimedate \
fof/share-social \
fof/split \
fof/terms \
fof/upload \
fof/user-directory \
itnt/flarum-backtop \
noriods/auto-more \
reflar/cookie-consent \
studosi/lang-croatian \
studosi/mail-filter \
the-turk/flarum-edit-notifications \
the-turk/flarum-ext-fancybox \
the-turk/flarum-mathren \
zerosonesfun/flarum-ext-sm2
I'm unsure if it has to do with the ordering, but I'm too tired to reproduce it now that I've finally got my forum migrated. Also, I've followed this tutorial with a few modifications (public folder instead of assets, ex.). I might try tomorrow because I still didn't get the new gamification working.