title: Laravel S3 image upload creates a folder with the filename automatically
body: <p>I'm using Laravel 5.4.*. I've this simple code in a helper file to upload images/gif in S3 bucket under a folder named say "instant_gifs/". The code is below: </p>
  
  <pre><code>if ( !function_exists('uploadFile') ) {
  
  function uploadFile($fileContent, $fileName, $size='full', $disk='s3')
  {
      $rv = '';
      if( empty($fileContent) ) {
          return $rv;
      }
  
      if($size == 'full') {
          dump($fileName);
  
          $path = Storage::disk($disk)-&gt;put(
                      $fileName,
                      $fileContent,
                      'public'
                  );
      }
  
      if ( $path ) {
          $rv = $fileName;
      }
  
      return $rv;
  }
  
  }
  </code></pre>
  
  <p>From the controller, I'm calling the helper method as below: </p>
  
  <pre><code>$file = $request-&gt;gif;
  $file_name = 'instant_gifs/' . $user_id . '_' . time() . '_' . $file-&gt;getClientOriginalName();
  $result = uploadFile($file, $file_name);
  </code></pre>
  
  <p>In the the $fileName parameter of the helper method, I'm providing the fileName as for example in this format: </p>
  
  <blockquote>
    <p>"instant_gifs/83_1518596022_giphy.gif"</p>
  </blockquote>
  
  <p>but after the upload, I see that the file gets stored under this folder </p>
  
  <blockquote>
    <p>"vvstorage/instant_gifs/83_1518596022_giphy.gif/CRm1o1YEcvX3fAulDeDfwT7DIMCxOKG8WFGcA3lB.gif"</p>
  </blockquote>
  
  <p>with a random file name </p>
  
  <blockquote>
    <p>CRm1o1YEcvX3fAulDeDfwT7DIMCxOKG8WFGcA3lB.gif</p>
  </blockquote>
  
  <p>Whereas, according to the code, it should get stored in this path: </p>
  
  <blockquote>
    <p>"vvstorage/instant_gifs/83_1518596022_giphy.gif"</p>
  </blockquote>
  
  <p>Doesn't get any explanation why this is happening. Any clue will be appreciated. </p>
  
  <p><strong>BucketName = vvstorage 
  <br> Folder I'm mimicking  = instant_gifs</strong></p>