• Extensions
  • FriendsOfFlarum upload, the intelligent file attachment extension

Are there any best practices SEO wise? For my forum it's quite important that the images are found by google.

    zeno this extension does nothing with SEO. It simply re-uses the provided name and prefixes it with some metadata.

    • zeno replied to this.

      zeno can you explain what you would need so that it would be more seo friendly?

      4 days later
      5 days later

      For the Amazon s3 bucket. Where are we placing/editing this code? Is it in the AWS console or some place else?

      {
      "Version": "2008-10-17",
      "Statement": [
      {
      "Sid": "AllowPublicRead",
      "Effect": "Allow",
      "Principal": {
      "AWS": ""
      },
      "Action": [
      "s3:GetObject"
      ],
      "Resource": [
      "arn:aws:s3:::bucket/
      "
      ]
      }
      ]
      }

        I also just attempted to install the necasary package for AWS and it said I ran out of memory....

        ubuntu@ip-172-31-83-118:/var/www/seekadventure.net$ sudo composer require league /flysystem-aws-s3-v3

        Using version 1.0 for league/flysystem-aws-s3-v3
        ./composer.json has been updated
        Loading composer repositories with package information
        Updating dependencies (including require-dev)

        mmap() failed: [12] Cannot allocate memory

        mmap() failed: [12] Cannot allocate memory
        PHP Fatal error: Out of memory (allocated 679485440) (tried to allocate 4096 by tes) in /usr/share/php/Composer/DependencyResolver/RuleWatchGraph.php on line 52

        Fatal error: Out of memory (allocated 679485440) (tried to allocate 4096 bytes) in /usr/share/php/Composer/DependencyResolver/RuleWatchGraph.php on line 52
        ubuntu@ip-172-31-83-118:/var/www/seekadventure.net$
        ubuntu@ip-172-31-83-118:/var/www/seekadventure.net$

          MikeJones upload has no way to configure these values. I'm also not sure they are needed.

          MikeJones that's not an issue of this extension. Your server has insufficient memory allowance.

            luceos that's not an issue of this extension. Your server has insufficient memory allowance.

            I will look into it, but Flarum is the only thing I have installed on my AWS EC2 Instance, is FLarum that big?

              MikeJones no, but composer has to load all of the packages, their tags and branches you are requesting and then match their requirements against your platform.

              10 days later

              Why is "s3.amazonaws.com/regionname/bucketname" used instead of "bucketname.s3.amazonaws.com" ? This limits the download to just one region instead of the best connection and download speed.

              vendor/flagrow/upload/src/Adapters/AwsS3.php

              replace line 30-37 with:

              $baseURL = 'https://'.$bucket.'.s3.amazonaws.com/';
              $file->url = $baseUrl . Arr::get($this->meta, 'path', $file->path);

                ChristianFrankenstein feel free to create a pr or issue on the github repository, also provide a link to the resource that confirms the correct linking behavior ?

                How to add the possibility of sending cs and json files?


                .cs

                (application\/(json))
                application/json


                .json

                (text\/(plain))
                text/plain

                Not working...

                  youhosi

                  ^text\/.*
                  ^application\/.*

                  ChristianFrankenstein Awesome just set up all that. Now for the configuration in the extension itself. Where Do I find this information on AWS:

                  AWS S3 storage settings, Key, Secret, Bucket, Region