Are there any best practices SEO wise? For my forum it's quite important that the images are found by google.
FriendsOfFlarum upload, the intelligent file attachment extension
Very Nice extension man!
Thank you for a very nice extension.
I tried to add the lightbox from FancyApps and so far works nicely.
Please find here for the steps:
https://discuss.flarum.org/d/4668-pop-out-image-modal/7
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/"
]
}
]
}
- Edited
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$
- Edited
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 ?
- Edited
You can test the upload on https://community.teklab.de it works. Create a topic in "off-topic" and upload a file.
What is not possible: delete files from the database and the file system. Or how are files deleted when the posts are edited or removed?
ChristianFrankenstein nothing happens to files when you delete or edit a post. You will have to clean manually if you want.
How to add the possibility of sending cs and json files?
.cs
(application\/(json))
application/json
.json
(text\/(plain))
text/plain
Not working...
Does imgur hold photos forever?
- Edited
^text\/.*
^application\/.*
- Edited
- Select Amazon S3 and your bucket
- Go to "permissions" and click on the button bucket policy
- You see this:
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