Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

FIXED #3 Added AWS S3 upload functionality - #5

Open
samgavinio wants to merge 33 commits into
vikdiesel:masterfrom
samgavinio:master
Open

FIXED #3 Added AWS S3 upload functionality#5
samgavinio wants to merge 33 commits into
vikdiesel:masterfrom
samgavinio:master

Conversation

@samgavinio

Copy link
Copy Markdown

Requires

  • Composer for autoloading PHP dependencies

How to use:

Change directory into the /ci dir and run:

composer install

Edit the config file in ci/application/config/aws.php.

$config['s3']['enable'] = true;
$config['s3']['url'] = "http://your-s3-url";
$config['s3']['key'] = 'SAMPLEKEY';
$config['s3']['secret'] = 'samplesecret';
$config['s3']['bucket'] = "bucketname";
$config['s3']['allowed_types'] = 'gif|jpg|png|jpeg';
$config['s3']['max_size'] = 5000;

Special Note:

Be extra cautious about not committing this config file with your actual s3 credentials into public repositories.

@TimTruston

Copy link
Copy Markdown

Hey @samgavinio this was an awesome move. When I run composer install I get "Composer could not find a composer.json ... " What should I do before that? Thanks

@TimTruston

Copy link
Copy Markdown

Fixed - i realized I had the wrong copy of jbimages. I got working code that from samgavinio/justboil.me - That fork has the composer set up done under https://github.com/samgavinio/justboil.me/tree/master/ci

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants