Hi,
I am trying to add a button in my addon's setting page. It is a download button.
I will pass the file name via link, and if the $_GET['file'] is same name with my log file. I will download the log file.
But now when I click download button, it's showing the content instead of downloading the file.
I think download file code is working due to when I using it without any condition. It's able to download when installing the addon.
Hope anyone can help me on this issue.
Thanks and Regards,
Mika