これは主に構文上の問題であり、私には理解できないようです。
これは私が今持っているものです:
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 )
提案、ヒント、アイデア?ありがとう..