• Extensions
  • FriendsOfFlarum upload, the intelligent file attachment extension

brian85 I see an error in aws S3 which says :
Bad Request
Meeting 2019 - TriumphAll (1).png /mediastoragetall/

brian85 there's no more detail for this? I personally don't use S3 so it would be helpful to get a better error message here..

    luceos I know but it seem that error 400 is used for multiple problems... should i use the bucketname or the arn in bucket field or your extension ?
    [edit] It seems that arn does'nt work better
    [update2] ok the parameter region was bad it was an euxxx string instead of eu (paris) but my parameter url content delivered is not correct, is nothing in preview because the url is not complete

    [Update] All is ok you just have to fill blank the url of content delivered. All is workink like a charm ! Thanks @luceos

      6 days later

      Hi,
      When I upload image(png) it will shows as a link, Can i have preview image in port options?

      thanks

      I can upload on my phone, but the vertical photo is rotated horizontally. Is this a bug?

      Hello,

      I have some problem downloading files that I have uploaded. The first time, it is working well but now I got a JSON file with the error 500 like this:
      {"errors":[{"status":"500","code":"unknown"}]}

      I cleared the cache.

      Hello. Upload is OK and files are stored in public/assets/files/2019-10-13 (for today). Images & PDF.

      But the URL associated with the file(s) is (are) incorrect(s), and I got an error
      {"errors":[{"status":"404","code":"not_found"}]}

      https://alpha.a2co.org/img001.png <-- Not working ???
      https://alpha.a2co.org/img001.png <-- Not working too ???

      The URL is like that : https://alpha.a2co.org/public/api/flagrow/download/f0e54a13-4956-47f6-b69c-d369028e9f84/12/xdQ2c7ZQT0yODRIXrLikpdQxESyekInbywioFM3Z
      I don't have any "api/flagrow/download" directory...

      Any help ?
      BBCode working
      [/img]

        Pherinos this is actually normal. If you enable file protection or download counter, it will use a dynamic url. The extension then should return the correct file from that url.

        Not sure why there's a 404 error.

        I notice you have a public folder in the url. You should configure your Flarum to remove it https://flarum.org/docs/install.html#customizing-paths This is probably unrelated to the Upload issue though.

          clarkwinkelmann OK, thank you, I'll try that.

          Hummm... customizing paths after an installation seems not working... I'll re-install all of this next days...

          But why there is an URL like api/flagrow/download/f0e54a13-4956... ? The files are not there, and there is no htaccess rule to change this URL, no script to get the file by reference, etc.

          :-(

          Uploading images seems to work for me but the preview does not. I just see the raw bbcode with a clickable link to an image on posted messages.

          Like this: [upl-image-preview url=https://domain.com/assets/files/2019-10-14/image.jpeg]

          Any ideas?

            SqueakyBlum Exactly same here. The image gets uploaded and the above code gets embedded in the post but it shows the code instead of the image. And the Attach button is not working in Firefox. When we select a file and try to Attach in Firefox, something strange happens and the discussion is shown. It works only in Chrome. Please do fix it whenever convenient. Is there any way to add a alt attribute to the image in the code it embeds so the image is spidered by google images? Thanks for the extension.

              @clarkwinkelmann There is another issue with resizing. The Image resize setting is off. Even when when I uploaded a 15kb image jpg, it converted it into a 30kb jpeg image. How can I disable this resizing because I am already optimizing my images to the max before uploading them? Thanks in advance.

              can't download image which uploaded in local, download button is shown if I clicked the download button redirect to 404

              chawki issue had solved its stores on flarum/public/assets/files

              Tirual Please, what do you mean by "just disable hotlink protection" ???
              Edit: hotlink protection toggle founded, but nothing more appends, fof formating don't work too... I think I'll work on a new instance of flarum with a clean DB... 😅

              Not working on a clean installation...