title: Uploading to S3 with Laravel 4 - Getting Error
body: <p>I am trying to upload images to my S3 bucket. I am using the "Aws\Laravel\AwsServiceProvider" and I getting this error:</p>
  
  <pre><code>Guzzle \ Common \ Exception \ InvalidArgumentException
  Unknown type passed to configuration loader: integer
  </code></pre>
  
  <p>I am following the docs. Here is the contents of the aws.php file:</p>
  
  <pre><code>return array(
    'key'    =&gt; '1AW0WZEW23...',
    'secret' =&gt; 'SSz0H69JEAselT...',
    'region' =&gt; Aws\Common\Enum\Region::US_WEST_2,
  );
  </code></pre>
  
  <p>I added this in my controller:</p>
  
  <pre><code>$path = public_path('public') . '/uploads/profile_pics/';
  $ext = Input::file('profile_pic')-&gt;getClientOriginalName();
  $fn = $randfile . '_' . $ext;
  
  $s3 = App::make('aws')-&gt;get('s3');
  $s3-&gt;putObject(array(
    'Bucket'     =&gt; 'nestr_profile_pics',
    'Key'        =&gt; $fn,
    'SourceFile' =&gt; $path,
  ));
  </code></pre>