You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Direction
We use github issues to track bugs, not for support.
If you have a support question, or a feature request, raise these as threads on our forum.
The controller will not display pdf files in the wen browser using php headers.
` // Store the file name into variable
// The location of the PDF file on the server
$file = WRITEPATH . 'pdf/CodeIgniterAjaxPagination.pdf';
$fileName = 'CodeIgniterAjaxPagination.pdf';
CodeIgniter 4 version
Which version (and branch, if applicable) the bug is in.
CodeIgniter 4.0.3 Dev
Affected module(s)
Which package or class is the bug in, if known.
Something to do with the Controller were the code is ran from.
Expected behavior, and steps to reproduce if appropriate
A clear and concise description of what you expected to happen,
and how you got there.
It should have displayed the pdf file in the web browser chrome newest version.
Works file using straight php code script and loading form the folder directly into chrome.
.
Feel free to include a text/log extract, but use a pastebin facility for any
screenshots you deem necessary.
Context
OS: [e.g. Windows 10 x64]
Web server [e.g. Apache 2.4.3]
PHP version [e.g. 7.4.7]
The text was updated successfully, but these errors were encountered:
InsiteFX
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Jun 21, 2020
Direction
We use github issues to track bugs, not for support.
If you have a support question, or a feature request, raise these as threads on our
forum.
Describe the bug
Forum reference: https://forum.codeigniter.com/thread-76768-post-377020.html#pid377020
The controller will not display pdf files in the wen browser using php headers.
` // Store the file name into variable
// The location of the PDF file on the server
$file = WRITEPATH . 'pdf/CodeIgniterAjaxPagination.pdf';
$fileName = 'CodeIgniterAjaxPagination.pdf';
Displays garbage characters.
CodeIgniter 4 version
Which version (and branch, if applicable) the bug is in.
CodeIgniter 4.0.3 Dev
Affected module(s)
Which package or class is the bug in, if known.
Something to do with the Controller were the code is ran from.
Expected behavior, and steps to reproduce if appropriate
A clear and concise description of what you expected to happen,
and how you got there.
It should have displayed the pdf file in the web browser chrome newest version.
Works file using straight php code script and loading form the folder directly into chrome.
.
Feel free to include a text/log extract, but use a pastebin facility for any
screenshots you deem necessary.
Context
The text was updated successfully, but these errors were encountered: