Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF Download Issue with POST Method - Downloads PHP Code Instead of PDF #732

Open
YtimoDeng opened this issue Jul 17, 2024 · 0 comments
Open

Comments

@YtimoDeng
Copy link

Hello,

I am experiencing an issue with the TCPDF library when using the POST method to generate a PDF for inline viewing. While the inline viewing works correctly, clicking the download button results in an attempt to download PHP code, which subsequently fails.

Environment:

PHP Version: 7.4.30
TCPDF Library Version: 6.3.2

Expected Behavior:

The PDF should download correctly.

Actual Behavior:

In Chromium-based browsers, an attempt is made to download PHP code instead of the PDF, resulting in a failure. However, the download works correctly in Firefox.

Additional Information:

  • The issue does not occur in my test environment, where the PHP version is 7.4.13, and the TCPDF library version is also 6.3.2.
  • The test environment allows downloading the PDF normally in all browsers.

Any guidance or suggestions on how to resolve this issue would be greatly appreciated.

Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant