I am encountering an issue in the context of a web application project using PHP, JAVASCRIPT, MYSQL technologies with a web server hosted on OVH.
The OVH server allows storage of various types of files: PDF, images, docx (Word).
The website (web application developed in PHP) displays files on an HTML page in the style of a file explorer (e.g., Windows Explorer).
The user should be able to open a docx file in Word from the HTML page displaying the files in a folder.
My latest attempt uses the following HTML code:
<a href="ms-word:ofe|u|{{ filepath }}">{{ document }}</a>
The error returned is as follows: Error
I have tried several methods. First, I tried opening the file with the winword command. Then, I attempted to open it with an HTML link "not_blank" to open the file in a different tab. To address the error, I tried removing my site from the list of sensitive sites, but without success. I don't fully understand this principle. I also tried checking all the boxes for blocked files in Word options. I want to emphasize that the project is using HTTPS.
Could you guide me or help me resolve this error, which I've been stuck on for a week?
Thank you in advance.