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
Hey! I got a problem with Shrine (https://github.com/jetrockets/shrine.cr). In some cases (one of our applications that worked with 0.35 before and new Shrine specs), we are getting an error that is below. Maybe it is not really problem of FileUploader, but for sure not all subclasses of IO respond to size.
Do you have any ideas how this can be solved?
In src/shrine/storage/s3.cr:57:18
57| uploader.upload(bucket, object_key(id), io, options)
^-----Error: instantiating 'Awscr::S3::FileUploader#upload(String, String, IO+, Hash(String, String))'In lib/awscr-s3/src/awscr-s3/file_uploader.cr:32:13
32|if io.size <UPLOAD_THRESHOLD^---Error: undefined method 'size'forIO::ARGF (compile-time type is IO+)
The text was updated successfully, but these errors were encountered:
Hey! I got a problem with Shrine (https://github.com/jetrockets/shrine.cr). In some cases (one of our applications that worked with 0.35 before and new Shrine specs), we are getting an error that is below. Maybe it is not really problem of
FileUploader
, but for sure not all subclasses ofIO
respond tosize
.Do you have any ideas how this can be solved?
The text was updated successfully, but these errors were encountered: