BuddyDev

Search

[Resolved] Uploaded PDFs not displaying in viewer

  • Participant
    Level: Initiated
    Posts: 2
    Ken Frame on #3249

    Hi, I can upload PDFs in my activity streams no problem, but when I try to view them, the PDF doesn’t open/display in the viewer (iframe)? any help would be much appreciated

  • Keymaster
    (BuddyDev Team)
    Posts: 24075
    Brajesh Singh on #3254

    Hi Ken,
    Most probably it is an issue with the urls. The viewer is using http instead of https causing this problem. I will have a fix in the update this week.

    For now, you may update mediapress/templates/mediapress/default/gallery/media/views/doc.php

    and change this line

    
    $url = "http://docs.google.com/viewer?url=". urlencode( $src );
    
    

    to this

    
    $url = "https://docs.google.com/viewer?url=". urlencode( $src );
    
    

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 2
    Ken Frame on #3259

    Thank you Brajesh that all worked fine, thanks for the support!

  • Keymaster
    (BuddyDev Team)
    Posts: 24075
    Brajesh Singh on #3263

    Thank you Ken 🙂

  • Participant
    Level: Initiated
    Posts: 2
    Alexander Sugianto on #31656
    This reply has been marked as private.

The topic ‘ [Resolved] Uploaded PDFs not displaying in viewer’ is closed to new replies.

This topic is: resolved