• Extensions
  • FriendsOfFlarum upload, the intelligent file attachment extension

Redmaus your info does not show any extension installed. Are you sure you are running the installation command in the right directory?

    GreXXL
    I ran the installation command in the same directory where my composer.json and composer.lock file are located.
    UPDATE:
    They seem to appear in my composer.json file though:

    UPDATE #2:
    I fixed the above issue with assistance from @luceos
    But now it appears that I can't seem to upload anything.
    I keep getting Oops! Something went wrong. Please reload the page and try again.
    I feel like I might be getting these settings wrong:

    So The above problem isn't something I've been able to fix. I'm worried it might be me trying to have the content URL in the wrong place. Should it be within the flarum/vendor/fof/upload/ directory?

    UPDATE:
    Is the content delivery URL a location in the server hosting flarum or for when users download files to their machine?

    how to increase file upload up to 50 mb?

    • Hari replied to this.

      Hi,I want to know how can i set qiniu to upload?i only find imgur and local.

        2926295173 run

        composer require overtrue/flysystem-qiniu

        And the Qiniu adapter will show up.

          ioo0s then i checked log

          What's in the log?

          ioo0s method_not_allowed

          It's normal to see this when accessing the URL, because your browser will perform a GET request instead of the POST request made internally.

          The log is the file at <flarum>/storage/log on your server.

            huuduy216 right now Imgur upload preview come with a link like this
            [upl-image-preview url=/i.imgur.com/95CvELJ.jpeg]
            I remember seeing a tutorial (and actually managed to do it) a while ago to add anothe template to upload so that it display the link differently, in my case I want to add https: prefix to the url. Anyone can point me to the right direction?

            Anyone?

            7 days later

            I am trying to enable the upload of xml files, but this does not want to work. Anyone know what is wrong here?

            (application\/(x-(7z|rar|zip)-compressed|zip|x-(bzip2|gzip|tar)|pdf|xml))|(text\/xml)
            5 days later

            Justman10000 Yes, but all you need to do is configure in admin panel that which file is allowed to be uploaded with mime equation

              • [deleted]

              luceos you can even configure fof/upload to allow php file uploads; whether that is wise is another question entire

              Nope 😃

              8 days later

              luceos

              Update failed

              # composer require overtrue/flysystem-qiniu
              Using version ^2.0 for overtrue/flysystem-qiniu
              ./composer.json has been updated
              Running composer update overtrue/flysystem-qiniu
              Loading composer repositories with package information
              Updating dependencies
              Your requirements could not be resolved to an installable set of packages.
              
                Problem 1
                  - Root composer.json requires overtrue/flysystem-qiniu ^2.0 -> satisfiable by overtrue/flysystem-qiniu[2.0.0].
                  - overtrue/flysystem-qiniu 2.0.0 requires league/flysystem ^2.0 -> found league/flysystem[2.0.0, ..., 2.1.1] but the package is fixed to 1.1.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
              
              Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
              
              Installation failed, reverting ./composer.json and ./composer.lock to their original content.