Share via

HTML file troubleshooting

Anonymous
2021-06-10T10:21:26+00:00

Hello,

I created a HTML file which contains an img tag linking to the local folder MyImage on C: but when opening it with the browser only the alt is displayed. I tried all the solutions found on the web but none of them is fixing the issue. It seems to be a security issue as opening the image directly with the browser works properly... Thanks for your help.

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2021-06-10T13:13:02+00:00

    Hi Fojibo,

    If the image is stored in C:\Users\Fojibo\Pictures and not in the default Pictures folder in Windows 10: C:\Users\Fojibo\OneDrive\Pictures then it is unusual for that tag to not be working,

    With HTML, it is best to have an Images folder in the parent folder of your HTML and reference the image form there, Windows 10 has far too many security and permissions to be referencing images in another folder, especially the user library folders, which are protected by Windows Security and also referenced in OneDrive.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2021-06-10T12:29:14+00:00

    Hi Dave,

    The image is stored in C:\Users\Fojibo\Pictures and the tag is img src="C:/Users/Fojibo/Pictures/Image.png" alt="logo">

    The HTML file is stored in my document on the same disk C:

    I changed the security permission to everyone on the C:\Pictures folder but that doesn't solve the issue.

    When opening the HTML file with the browser it displays logo instead of the image.

    As a side note it was working fine a few month ago.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2021-06-10T10:56:11+00:00

    Hi Fojibo,

    I am Dave, an Independent Advisor, I will help you with this.

    Please provide more information on your HTML file, where is the image stored in relation to the HTML file, are they in the same folder and also provide the IMG tag you are using.

    1

    Windows 10 usually very protective of folders in the root of the C drive, if you are using a folder in the root of your C drive, if you move that into one of your user library folders and change the path in the IMG tag, does the image then appear?

    2

    Or, if you change security permissions on the C:\MyImage folder so the user 'Everyone' has full control on that folder, does the image then appear?

    Was this answer helpful?

    0 comments No comments