Home » Php » Downloading file displays unknown characters [on hold]

Downloading file displays unknown characters [on hold]

Posted by: admin June 30, 2018 Leave a comment

Questions:

I tried to make a download link on a page like this:

<a href="uploads/testfolder/excelfile.xlsx" target="_blank">Download here</a>`

When I click the link, it displays a page as shown in the picture below, which is also viewed in the same page.

enter image description here

It is supposed to download in the new window because I put target="_blank". But the weird part is, when I try to right-click and open in a new window, it automatically prompts me to download the file.

Answers: