How to display files of s3 bucket in browser by clicking on preview icon?

download_url =
user_id: user_id,
file_name: document.title

preview_url = download_url.split(’?’)[0]

This is the code i tried

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs