I want to extract files to a zip file that I downloaded into my Rails application. Files in the ZIP archive will be stored in the database.
I want to open a ZIP file in my action without first saving the file in a folder - I want to open the multipart / form-data stream with rubyzip.
It looks like rubyzip ZipFile.open accepts only the file name - not the input / output stream.
What I need to change in rubyzip so that I can open the zip file as a stream, for example:
Zip::ZipFile.open(params["zip_file"]) do |zip_file|
...
end
Thanks. Jörg
Joerg source
share