• Extensions
  • FriendsOfFlarum upload, the intelligent file attachment extension

Petersoj please see the post IanM
This feature does not work properly and should not be used for the moment.

    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

    A new settings key is used for the watermark image, so if you are already using a watermark, please upload the image again

    Screenshots

    image

    image

    Features

    Screenshots:

    admin interface
    image

    upload modal (with settings, access options, etc)
    image

    user media library
    image
    image

    Updating

    composer require fof/upload:"*"
    php flarum migrate
    php flarum cache:clear

    💝

    Thank you to @GreXXL for testing this new feature!

      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.

        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}

          mrnaterpg

          I can't seem to replicate that issue - Please can you provide an output of php flarum info ?

          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

            mrnaterpg You've removed some extensions from this list? fof/upload is not listed.

              "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.

                1.5.1

                Updating
                composer require fof/upload:"*"
                php flarum cache:clear

                1.5.2

                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

                hello sir,
                thanks for the update, I can confirm that the sitemap route is accessible and the sitemap can be built

                1.5.3

                Updating
                composer update fof/upload
                php flarum cache:clear