title: Getting "stream does not support seeking" reading CSV from S3
body: <p>Using <a href="https://csv.thephpleague.com/9.0/reader/" rel="nofollow noreferrer">LeagueCSV &quot;^9.6&quot;</a></p>
  <p>when reading a CSV file on my local server leaguecsv worked great.  I've moved the CSV file to S3 for production and now i'm getting a &quot;seek&quot; error when making the getHeader() call.</p>
  <p><strong>&quot;{message: &quot;stream does not support seeking&quot;, exception:  &quot;League\Csv\Exception&quot;,…}&quot;</strong></p>
  <p>after getting the seek error I tried the following change that I saw on <a href="https://github.com/thephpleague/csv/issues/222" rel="nofollow noreferrer">Github</a> as follows with no help:</p>
  <pre><code>        $s3Client = \Aws\S3\S3Client::factory(array(
              'version' =&gt; 'latest',
              'region' =&gt; env('AWS_DEFAULT_REGION'),
              'credentials' =&gt; array(
                  'key'    =&gt; env('AWS_ACCESS_KEY_ID'),
                  'secret' =&gt; env('AWS_SECRET_ACCESS_KEY'),
              ),
          ));
          
          $s3Client-&gt;registerStreamWrapper();
  
          $context = stream_context_create(array(
              's3' =&gt; array(
                  'seekable' =&gt; true
              )
          ));
  </code></pre>
  <p><strong>I also changed from createFromPath (worked when file was on local server) to createFromStream for S3</strong></p>
  <pre><code>        //load the CSV document from a file path
          //$csv = Reader::createFromPath($FileNameOnEC2, 'r');  &lt;&lt;--this worked fine when the file was on the local server
          $stream = fopen($FileNameOnS3, 'r', false, $context);
          $csv = \League\Csv\Reader::createFromStream($stream);
  
          $csv-&gt;setHeaderOffset(0);
  
          $header = $csv-&gt;getHeader(); //returns the CSV header record // &lt;&lt;-- calling this causes the error 
  
          $records = $csv-&gt;getRecords(); 
          $content = $csv-&gt;getContent();
          
          $stmt = (new Statement());
  
          $records = $stmt-&gt;process($csv);
  </code></pre>
  <p><strong>does anyone see the issue?</strong></p>