amazon s3 - Google Doc's Viewer -


i'm trying google docs viewer load pptx file stored on amazon s3 account , fails reason. put same file on dev server , loads fine.

 <!--- 1 works ---> <iframe src="http://docs.google.com/gview?url=http://www.myurl.com/iframe-ppt-demo/demo.pptx&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>   <!--- 1 not works ---> <iframe src="http://docs.google.com/viewer?url=https://mys3bucket.s3.amazonaws.com/demo.pptx&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe> 

i can download s3 link fine , made sure had open/download premssion set. google docs not allow s3 files???

i have similar problem access pdf 1 server, not other. stumped while have found believe reason because seems google has xss policy prevents 'viewing' pdf different server.

if file embedding pdf on different site (not sure if different ip, domain or server?) google not allow loaded.

i hope helps.


Comments