I am trying to connect to my S3(privately- using access key) and load a document file for display on iframe. However when i add the following html code to my front end, it ends up downloading the file to my computer instead for loading it within the iframe. How do I make it display within the iframe?
<!--index.html.erb-->
<!-- image is the attachment done through paperclip gem-->
<iframe src="<%= @file.image.expiring_url(50)%>" width="100%" height="800" >