• Extensions
  • FriendsOfFlarum upload, the intelligent file attachment extension

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.

      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.

      • [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?

        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

        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 | |
        +-------------------------+------------------+--------+

          rovvp Sorry error message from my last post didn't work

          The error is Error 422 - The file failed to upload.

          I have also checked all the normal stuff, disk space, permissions etc.

            rovvp

            Sorry I was in a rush and didn't really read what other posters were saying . I literally had the same issue 😀

            ^ @AlastairNixon

            I fixed up upgrading to the same version which appears to work with beta 16

            Merged 1 post from Wasabi Storage Support..

            I've tried it, almost everything works fine except this "*.amazonaws.com"...
            Whats Working ...

            1. File Uploading - Worked
            2. Keys - Worked

            Whats Not Working ...

            1. Downloading Not Working...

            Reason ...
            --- wasabisys.com --- automatically changed to --- amazonaws.com --- after file successfully upload, Thats leads to download Error.

            Is there any shortcut or temporary way to fix this issue @FriendsOfFlarum, @luceos , @askvortsov @Ralkage

            Edit: I changed "amazonaws.com" to "wasabisys.com" in AwsS3.php ... It's working now but Is a permanent solution or temporary ?

              4 days later

              MohdKhan Edit: I changed "amazonaws.com" to "wasabisys.com" in AwsS3.php ... It's working now but Is a permanent solution or temporary ?

              I am not sure we have an easy solution for this. You could override the upload adapter using a local extender if you have a knack for coding.

                luceos make it working atleast for now.
                I'm currently using BackBlaze B2 for Uploading Files.