You’re not exactly uploading are you, more like hosting? So it’s the very same thing as the html file. Your browser first requests the html file which references other files (your image) and so the browser requests those too. The simplest option would be to place both the html file and the image file in the same directory, and use the basename of the imagefile’s name when referring to it from the html file.
vscode has nothing to do with any of that does it? That’s a text editor. Not a browser, not a webserver, not a file system.
The link you’re using is not an absolute (complete) url. The root of your file system is /, if your browser is reading directly from your file system then an absolute link has to start with /, or otherwise be relative to the directory where your html file is.
If you’re using a webserver then reaching your file system from the browser would also require a change of protocol, so you’d have to specify that as well. file:///path/to/my/image though, if you’re using a web server then the image should probably go through there too.
I have a bad habit of editing a lot after posting, not sure if you received it all seeing as you responded by mail.
Your path to the image is probably wrong. The path needs to be either relative to the directory of the html file, or be an absolute (complete) path, which yours isn’t. Your browser also needs access to that path.