title: How can I unzip a file and upload individually all its file to s3?
body: <p>This is mainly a syntactical question that I can't seem to wrap my hands around.</p>
  
  <p>This is what I have now :</p>
  
  <pre><code>    Zip::ZipFile.open(zipped_file, Zip::ZipFile::CREATE) do |zipfile|
        zipfile.each do |file|
  
          config = YAML.load_file(Rails.root + 'config/s3/s3.yml')[Rails.env]
          AWS.config config # instantiate AWS creds..
  
          # @filepath = .. I can't figure this out. How do I get a file and file path from a Zip::ZipEntry or ZipFile object to be able to upload a File object to S3..
  
          AWS.s3.buckets[config['bucket']].objects.create("quizzes/" + v['id'] + "/" + file.to_s, file: @filepath )
  </code></pre>
  
  <p>Suggestions, tips, ideas? Thanks..</p>