• I am uploading PDF (and mp3) files from the front end using

    [fileup filetypes="mp3,pdf" maxsize="20"]

    It works well and there are no problems. Then the content is displayed for other users to download these files using:

    [fileaway type="table" sortfirst="mod-desc" sub="pdf"]

    The PDFs are stored on the server in an existing pdf folder. The problem is, users can download the PDF files without problems. However, the downloaded files are broken and cannot be opened. The PDF viewer reports the error: “File cannot be opened. Error [PDF Structure 40]: Invalid reference table (xref)”. When the files are downloaded directly (using FTP), there is no problem. Any hints?

    https://www.ads-software.com/plugins/file-away/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author thomstark

    (@thomstark)

    The problem is not with the upload, it’s with the download. You have either stats or encryption enabled and there must be some error occurring that is getting printed to the pdf file because you have wordpress error reporting enabled, with display errors set to true. That’s my guess.

    Thread Starter to_sam

    (@to_sam)

    Thanks, I disabled Stats and now it seems to work. So does that mean I cannot use Stats at all?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Broken PDF after fileup and download’ is closed to new replies.