PDF and DOCX files are scambled

Home Forums Gravity Forms Directory & Addons PDF and DOCX files are scambled

This topic contains 2 replies, has 2 voices, and was last updated by  Zack Katz 4 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5258

    johnlanglois
    Participant

    I have a  form that uploads a number of file types, including PDF and DOCX.

    I built a form to show the entries with a link to the uploaded file.

    The icon shows ad PDF form for the PDF and MS icon for the word document.

    However, when I click the link the file loads as raw code.  PDF is gobbledygook and the docx is a mixture of text and code.

    How do I get the files to load properly in the lightbox?

    Thank you.

    #5279

    johnlanglois
    Participant

    Anyone?

     

    #5280

    Zack Katz
    Member

    That sounds like a server configuration issue: you need to set PDFs as that type of file. I’d recommend you call your hosting company.

    The best you can do for DocX is have it download instead of load in the browser; there’s no way to display it in the browser.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.