class ActiveStorage::Service::DiskService

def stream(key)

def stream(key)
  File.open(path_for(key), "rb") do |file|
    while data = file.read(5.megabytes)
      yield data
    end
  end
rescue Errno::ENOENT
  raise ActiveStorage::FileNotFoundError
end