It’s been a fair few years since I was last working with Rails, so I’m not sure if this is extremely obvious, but just from reading the guides I was not entirely sure how to do this.
Essentially I am using Active Storage to upload fairly large files, which I would like to read back in relevant chunks. It’s clear from the API documentation that the ActiveStorage services all support this type of thing, but the guide only refers on how to use it for uploading and downloading full files.
Reading through the source I finally understood that it’s possible to get the current service per configuration through
ActiveStorage::Blob.service, which allows me to call the methods that I need.
Is this documented somewhere else, or is it something that perhaps could be added to the ActiveStorage guide, like it is done under “Downloading Files”