• Extensions
  • FriendsOfFlarum upload, the intelligent file attachment extension

luceos I forgot to reply. Thank you, I got it to work. Actually I was adding the whole thing into the wrong box. I was using the one down below for the comma sperates list! Can't remember what the box is called off the top of my head. Anyways, oops. Got it fixed now!

michaelangrivera [deleted] simple response is no, not at this time.

But with a combination of the "Simple URL" template and MediaEmbed plugins, you might be able to achieve preview on some host platforms. I don't think any of the hosting platforms supported by Upload at this time have MediaEmbed previews, but you might be able to add support through a TextFormatter extension.

0.10.1

For beta.13 only
  • Address InvalidDownloadException seen under specific circumstances when running Flarum in a Docker container

0.11.3

For beta.14 and above
  • Address InvalidDownloadException seen under specific circumstances when running Flarum in a Docker container
  • Add support for S3 compatible services, such as Backblaze B2 or Linode Object Storage
  • Better handling of adaptor selection when local is disabled

Updating

composer require fof/upload
php flarum cache:clear

    IanM

    I have some issues, I set S3 config and OSS links (http://upload.xxx.com).
    make [^image\/.*] upload to OSS, other types upload to Local,
    but every files that i upload links all be OSS links,
    OSS links just for OSS, Local files cant use this link.
    English is not my native language, if you need more info, I'll try my best.

      Pika please post your exact regex configurations here, that would be easiest in debugging. Thanks.

        luceos

        config

        2.png
        1.png

        upload

        3.png
        pdf can not open by this OSS link, while image can.

        when i turn OSS config OFF

        all files upload to Local, but all can be open with origin link.
        4.png

          Pika so if I get this right it uses the CDN domain when uploads are handled by the Local driver?

          This is caused by the Content Delivery URL setting, try removing that value. I guess we need such a configuration on the S3 settings area instead.

            luceos
            in my situation.
            upload.xxx.cn is my CDN domain, and xxx.com is my local domain,

            i mean:
            files like pdf i would like it be uploaded and visit by original links, it saves in my server computer.
            images be uploaded to CDN to make it fast to visit.

            but now, if I set CDN(OSS Link) and image upload to QINIU, Images will be upload to QINIU, pdf will be uploaded to my server, but all them return the CDN links, pdf wont be uploaded to CDN(QINIU), so we can't use this link to open it, only original links can visit.

            i dont know if i explain it well. sorry to take your time, thank you luceos anyway!

              Pika if you set the CDN URL it overwrites all URL's of all adapters. So this is not a bug, even though the outcome is not the best. Qiniu needs a new setting so that you can specify the CDN url for that driver instead of using the CDN url for all adapters.

                luceos yeah, but semms i dont see other CDN links configuration for QINIU or Amazon only.

                  Pika that's right they don't exist and would have to be added.

                    Geraldlzc the 500 error will have details in <flarum>/storage/logs on the server.

                    Not sure if you also have a javascript error? I don't see it in the console. It will be something separate from the 500 error in any case.

                    7 days later

                    Recieved the "installation failed"? for Fof Upload extension. How can i install the Fof Upload extension? (for Beta 14.1)

                      On upload watermark after select the image then upload the page is refresh and not save is it normal?

                        HuseyinKogo try

                        composer require fof/upload -W

                        Tapao but did the watermark upload?