This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

JREAM
JREAM

Heya, Here's how i finally got S3 working -- 100% on October, but 50% with the blog (with the image icon in the editor -- NOT the featured image)

October Website Suggestion: On This Website, The Forums should be listed in the Top Navigation they are not even in in the footer.

  • Media / Rainlab Blog + S3
  • I could not use the fantastic plugin: Rainlab.Blog for complete cloud storage I issued a bug report. However, local and cloud storage work -- perhaps I just did it wrong all along? So the solution was to only use Rainlab.Blog for the media folder (As far as I can tell they .
  • I had some trouble with this but I got it working for uploads within a post (The editor area)
    • Problem: The featured image uploads locally, not to the cloud -- Im not sure how to change this
    • Problem: The featured image cannot be selected from Media (Which they say to extend the user plugin, ill see about that git issue)

vim config/cms.php - I changed the following:

'media' => [
    'disk'   => 's3',
    'folder' => 'media',
    'path'   => sprintf('https://s3.amazonaws.com/%s/media', env('S3_BUCKET')),
],

I am using the ./artisan october:env for the .env file/extension it intalls for env('S3_BUCKET)`;

Then I changed my filesystem, I left default to local and updated:

'cloud' => 's3',

'disks' => [
    's3' => [
        'driver' => 's3',
        'key'    => env('S3_KEY'),
        'secret' => env('S3_SECRET'),
        'region' => env('S3_REGION'),
        'bucket' => env('S3_BUCKET'),
    ],

I also set ACL permisssions on files, eg: apt install acl which is a lot easier than setting permissions all over the place, and especially not 0777! I hope that helps anybody.

Last updated

chris10207
chris10207

Thanks for the info. Can I ask you if the Uploads are still working with this config and where the uploaded files are stored ?

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.