A simple Symfony Service to Upload Files to Amazon S3

May 30, 2015

How to implement a simple Syomfony2 Service to upload Files to S3.

Install the Amazon SDK

Execute the following Statement:

Create a Service Class

Parameters Config

Add the following lines to your parameters.yml file or set them by settig environement variables.

Create a Service Configuration

For every Bucket you’re using, create one Service Config.

Usage