Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Can I display pdfs from an AWS S3 bucket on a Grav page?

Solved by Dafydd Roberts View solution

Started by Dafydd Roberts 7 years ago · 1 replies · 946 views
7 years ago

I am new to Grav.

I would like to display pdfs from an AWS S3 bucket on a Grav page. (Due to Limited space for pdfs on host).

How would I accomplish this?

Being (very) slow is unlikely to be an issue.

(I've configured the appropriate AWS ‘Permissions’ and 'CORS Configuration’ and can access the pdf file as gobbledygook - but need to be able to view it)

Thanks in advance

Dafydd

7 years ago Solution

Hi all,

This is probably a well trodden path, but for anyone else similarly stuck I resolved it by using the docs.google <iframe> method.

<iframe src="https://docs.google.com/gview?url=https://s3-eu-west-1.amazonaws.com/bucketname/folder/yourfile.pdf&embedded=true" style="width:600px; height:300px;" frameborder="0"></iframe>

Cheers

Dafydd

👍 1
last edited 05/01/19 by Dafydd Roberts

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 56 13 hours ago
Support · by Anna, 3 days ago
2 61 16 hours ago
Support · by Justin Young, 17 hours ago
1 32 17 hours ago
Support · by Duc , 1 week ago
2 66 5 days ago
Support · by Colin Hume, 1 week ago
2 59 5 days ago