

Medelin0,
> Если в браузере нажать на картинку — открыть изображение — Not Found
Ну правильно, ведь путь не верный, имелось ввиду открыть картинку прописав путь руками в адресную строку.
> Если указать полный путь C:/Users/asd/Desktop/app_server/server/templates/1.jpg — то вместо «Not found» появляется Not allowed to load local resource
Говорит нет прав доступа, а откуда вообще идёт запуск? Локальный сервер или директория с HTMlCSS?
Пробовали?
I have a problem with reading images that exist on desktop(jpg format or something else image). The location is:C:UsersMarianDesktoppozalaptop.jpg. I’ve try this codes but doesn’t work.
1 Answer 1
Look at your browser’s console to see the error message. If might be a network error, in that case the path can’t be found. But more likely is a security exception: Pages which use the protocol http: or https: aren’t allowed to access resources with the file: protocol for security reasons (otherwise, attackers could scan your computer for files).