My problem is that everyone opens with PDF files using my browsers until I have downloaded the pdf file inside. Then, if I insert it, it returns a blank page. But other pdf files with forms open normally. See my code below:
<object data="{{ asset($test->file_path) }}" type="application/pdf" width="100%" height="100%">
<embed src="{{ asset($test->file_path) }}" type='application/pdf'>
<center>
<a href="{{ route('download.test', ['id' => $test->id]) }}" class="btn btn-primary">Please click here to view</a>
</center>
</object>
Note. I also tried using <iframe>, but still returns a blank page.
Decision:
option1:
Renamed my #icon file . And everything should work fine.
option2:
Use if necessary urlencode.
source
share