• Extensions
  • FriendsOfFlarum upload, the intelligent file attachment extension

Pollux

Thank you for the great help. solves the issue.

Hey, im not sure if i miss some details but i dont get it to work like you descriped - when i upload an image I get a download link and a tiny preview ( no markdown img link or something like that ).

( didnt read all of the 300 commects but most of them )

Edit : we use the forum as internal ( local ) page, so we cant use imgur or any other internet source
Config : Config

@luceos Hello, I installed and configured to AWS S3. I tried to upload a image and got $image-0ada6f09-aef8-48c7-bdd4-6481a77941af text in the article but did not display the image.

Please advise. Thanks!

I cant upload anything.
When i Enable Debug, give me this Failure.

POST http://smartgames.esy.es/api/flagrow/upload

<br />
<b>Fatal error</b>: Uncaught Error: Class 'Ramsey\Uuid\Uuid' not found in /home/u825870850/public_html/vendor/flagrow/upload/src/Repositories/FileRepository.php:52
Stack trace:
#0 /home/u825870850/public_html/vendor/flagrow/upload/src/Commands/UploadHandler.php(94): Flagrow\Upload\Repositories\FileRepository-&gt;createFileFromUpload(Object(Symfony\Component\HttpFoundation\File\UploadedFile), Object(Flarum\Core\User))
#1 [internal function]: Flagrow\Upload\Commands\UploadHandler-&gt;Flagrow\Upload\Commands{closure}(Object(Zend\Diactoros\UploadedFile), 0)
#2 /home/u825870850/public_html/vendor/illuminate/support/Collection.php(469): array_map(Object(Closure), Array, Array)
#3 /home/u825870850/public_html/vendor/flagrow/upload/src/Commands/UploadHandler.php(140): Illuminate\Support\Collection-&gt;map(Object(Closure))
#4 [internal function]: Flagrow\Upload\Commands\UploadHandler-&gt;handle(Object(Flagrow\Upload\Commands\Upload))
#5 /home/u825870850/public_html/vendor/illuminate/bus/Dispatcher.php(202): call_user_func(Array, Object(Flagrow\Uplo in <b>/home/u825870850/public_html/vendor/flagrow/upload/src/Repositories/FileRepository.php</b> on line <b>52</b><br />

    I get an error message when trying to install this extension by using composer.

    What I type: composer require flagrow/upload
    The error I get:
    Problem 1
    - Removal request for flarum/core == 0.1.0.0-beta7
    - flagrow/upload 0.5.7 requires flarum/core ^0.1.0-beta.6 -> satisfiable by flarum/core[v0.1.0-beta.7].
    - Installation request for flagrow/upload ^0.5.7 -> satisfiable by flagrow/upload[0.5.7].

      luuxter make this.
      Go to your flarum folder
      php ../composer require flagrow/upload

      Its amazing extension, Work Perfect in Beta 7.

      Thank You!

      5 days later

      @luceos any updates on the full-size image and removal of download overlay? I'm waiting for those to deploy this extension.

      I'm sure you're super busy, just curious if there was an update. Thanks!

        JRay I did some work on it again today. There is progress, it's just not done yet.

          JRay thanks for your support, sometimes that's exactly a developer needs to push code to the finish line ?

          luceos changed the title to Flagrow upload, the intelligent file attachment extension .

          JRay and also @Puschie @limiter @san @sizonov_stas @bikepost

          I've just tagged 0.6.0-beta, which adds a feature I've been investing quite some time into.

          Templates

          Templates are how uploads are shown on your forum. Enforcing proxied downloads and the new image preview in 0.5.0 might have been a bad decision. In order to keep the new functionality intact, but still allow full screen image uploads, the new templates functionality allows you to configure how files are shown per mime type configuration.

          release notes

          • Added template functionality, allowing to configure per mime type / adapter how files are shown in your forum.
          • Vietnamese, Polish, Korean and Chinese translations are updated or added. Thanks to tdtgit, Rylat, Comocozy and BeefOnionDumplings.

          Previews in replies now also work due to this feature.

          Upgrade

          In order to upgrade from 0.5.0 or below, use Bazaar or manually:

          composer require flagrow/upload:0.6.* --prefer-dist --update-no-dev -o
          php flarum cache:clear
          rm assets/rev-manifest.json

          Make sure to create a backup of your database and files (assets) regularly.

          Downgrade

          As this version is tagged beta on purpose; in case you run into any issues revert the upgrade like so:

          composer require flagrow/upload:0.5.* --prefer-dist --update-no-dev -o
          php flarum cache:clear
          rm assets/rev-manifest.json

          Have fun

          I hope you all enjoy this release. If you do make sure to let us know and if possible support our efforts at patreon.com/flagrow ?

            luceos Thank you for this and for tagging me.

            • I am still experiencing this issue: flagrow/upload104
              I see it was closed but without explanation. Does it mean, you resolved it?

            • The update does not seem to work on images that have already been uploaded/ in existing threads.
              The image does not show in full/ big size and hovering gives the option to download, which I'd like to disable.

              bikepost

              • That one is fixed but not yet released. Will do so once 0.6.0-beta seems stable.
              • Old uploads indeed are not migrated to the templates functionality.

                luceos

                • okay
                • not only the existing images were not migrated but the update broke the existing images.
                  Can we please migrate the images to the new templates?