Search a path in the a tag

In the href of the “a” tag, I’m passing a link from a file that is on my machine, and it’s inside the server / upload folder
Link in href C:/Users/feliped/Documents/Projects_Felipe/cprojb/server/upload/coke.png", but this is giving error in console:" Not allowed to load local resource: file: /// C: / Users / feliped /Documents/Projects_Felipe/cprojb/server/upload/coke.png ". Is there any way you can do that?

I believe this is a Chrome security feature.

1 Like

The error still persists, I used the cmd command "'C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe' --allow-file-access-from-files", and I also tried using the " sanatizer "angle, but neither of them solved.