I have a download link in my app from which users should be able to download files which are stored on s3. These files will be publicly accessible on urls which look somethi
def download_pdf @post= @post.avatar.service_url
send_data( "#{Rails.root}/public/#{@post}", filename: "#{@post}", type: "image/*", disposition: 'inline', stream: 'true', buffer_size: '4096' )
end