File uploading with Hanami 2


Starting out with a new Hanami app, and I was wondering what is the recommended approach to handling file uploads to s3?

Is it still shrine? As I see a note on the repo that it might not be needed in 2.1


I assume to hanami-shrine repository. If so, yes, it only works for Hanami 1.x, because Hanami 2 does not yet have model layer to which a library like this could hook into.

That being said, I still use Shrine with Hanami 2 - although not with S3, but this should be a detail. You can see some relevant code: upload provider, avatar uploader and an entity using avatar.