• Extensions
  • FriendsOfFlarum upload, the intelligent file attachment extension

This is a great extension, and I thank @luceos for his efforts in developing it.
I apologise in case it was already told somewhere else, but in my view it would be very useful to add some kind of visual feedback (an animation, or a percentage of some sort) to clearly show when the file upload to the server is happening.
This is even more relevant in case of large files uploads, when the user has no clear perception whether the upload is still ongoing or has stuck for some reason.
Keep up the good work!

    0.3.8 tagged with Italian language.

    Thanks to all who have translated my package and send in the file or a PR, this is much appreciated by me and the users of the package!

    9 days later

    hi, I want to upload the " .pie " file, but i used the regular expression was useless.

    (image|audio|video|pie)\/.*
      8 days later

      Hi flarum newb here, I tried using it on local development for now and I've been receiving

      " Oops! Something went wrong. Please reload the page and try again. "

      And when I press debug it says,

      200 OK
      POST http://flarum.dev/api/flagrow/upload

      <br />
      <fon

      any suggestions? thanks ?

        achlys you can edit your discussion and replace all ":" with "_". That's the manual solution for this.

        @luceos Whenever I install an extension on my localhost and upload the entire folder to my site path, the same bug requires me to manually edit each discussion to replace all ":" with "_". What's the solution for that, please? Furthermore, it can't properly link the uploaded files whose names have spaces.

          WaqarKhan Furthermore, it can't properly link the uploaded files whose names have spaces.

          Could you give an example? see here

          hechengzhang

          What application does a .pie belong to? You're mistakenly trying to use a file extension for the mime type, try an online tool like this one to identify the mime type: http://mime.ritey.com/

          kzyyy what's the exact error message, you've posted only part of it? <fon?

            Hi, I'm not able to upload files after installing the extension. I suspect this has to do with my Local storage settings as I left it blank, not knowing what to put there. Can anyone help ?

            LOCAL STORAGE SETTINGS
            Content Delivery URL (prefixes files):

              luceos Thank you. Actually, my Admin role could upload files while my User role could not, so I realized that I had to update permissions in the Permission page of the Admin panel. Maybe this extra installation/configuration step should be added in the FriendsOfFlarum FAQ

              I've also been trying to upload PDF files with this:

              (image\/(gif|jpeg|png))|(application\/(x-(7z|rar)-compressed|zip|arj|x-(bzip2|gzip|lha|stuffit|tar)|pdf))

              But it didn't work. What string should I use if I only want images and pdf files?

                Released version 0.4.0.

                This is a minor update, however your old settings related to mime type configuration will be gone, so make sure you copy/paste the regular expression!

                ? I'm very happy about this release mainly because of the following features that have been added:

                • For a while I've been debating why we would only need one specific upload adapter (or service). For instance Imgur couldn't handle anything aside from images. It would make more sense if you could upload your video's to amazon aws, your files to a cdn and store perhaps gif's locally. This update allows you to configure an upload adapter per mime type expression!

                • Also, based on some voiced hopes for watermarking, I've added that as well. There is still a bug that you won't see a preview of the watermark image in admin, but I guess you are most likely as happy as I am with being able to watermark at all.

                • Thanks @Davis and @webeindustry for adding OVH as an adapter.

                • Thanks BeatPlus for adding Spanish on most content.

                Update using

                composer update flagrow/upload:^0.4.0
                php flarum cache:clear

                If any translator of my package is reading this post, feel free to update the language files accordingly.


                hunochma Actually, my Admin role could upload files while my User role could not, so I realized that I had to update permissions in the Permission page of the Admin panel.

                Updated the readme and OP. Thanks for pointing it out, let me know if you need assistance related to the regular expression thing (it should be easier with the new multiple mime type configuration).

                When I try to update from 0.3.8 with

                 composer update flagrow/upload 

                I get

                 Nothing to install or update  

                  achlys Look at Flarum's composer.json and change flagrow/upload in dependencies to ^0.4.0.
                  It's probably currently set to ^0.3.8

                  I just tried installing this and saw the following image in the settings page. It seems weird. Is it supposed to look like this? I already tried disabling and re-enabling the extension and even removing and reinstalling the extension but it still looked like this.
                  https://i.imgur.com/Slc6xNI.png