You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a zip with files I want to upload to active storage. Some of the files can be several gigabytes so it's important to me that I don't read the whole string into memory. ActiveStorage ueses s3 which needs to know the length ahead. The Zip::InputStream does not expose a size method. I deep my feet into the source and found that Zip::InputStream as a @current_entry which was a size method.
I have a zip with files I want to upload to active storage. Some of the files can be several gigabytes so it's important to me that I don't read the whole string into memory. ActiveStorage ueses s3 which needs to know the length ahead. The
Zip::InputStream
does not expose a size method. I deep my feet into the source and found thatZip::InputStream
as a @current_entry which was a size method.I did a little monkey patching 🙊
Now my usage has become
My question is if this is a patch you want to have into rubyzip?
Do you want me to make a PR?
The text was updated successfully, but these errors were encountered: