Hi, I want to change the behaviour of a link to a shrine attachment from downloading to opening in the browser (where supported). This is for a PDF file.
Currently I’m using shrine 2.9.0 (I’ve not had time to migrate to newer) with the S3 plugin. calling attachmnent.url
generates a presigned url that triggers the download. The file name is also currently the object key instead of the actual file name, I’d like to fix that as well.
From what I can tell, I ought to be able to just do attachment.url(response_content_disposition: "inline")
.
But this isn’t working.
Any advice?