Hi @TaokyleYT! Although I’m not familiar with flask, I think this is a problem based on paths.
On line 124 of your code, you have:
pics = f"pics/{pic}"
Which may seem to do the trick, however it doesn’t. The reason may be because it is not searching from the correct folder. You can try f"./pics/{pic}" to search from the current directory, or use f"/pics/{pic}" to search from the root folder.
Nope ./pic/{pics} doesn’t work
Also in line 125 to 127 is to check if the path exists and accessible, which the path in 124 passed it so I don’t think it is the problem of the path
This is probably a cache issue. A new user entering the site can view the images just fine. You can try restarting Google Chrome or delete cache data from your website.
Edit: nvm found out you put herf instead of href. But if you do encounter any image issues with the correct href, then yeah it’s probably cache.
Hello there, your problem may be cache. If not I would suggest ensuring that the address to your image is legitimate. Try debugging by moving your image to the home directory (without it being inside of folders), and modify the HTML code to reference it as just “image.png” instead of “folder/image.png”. (As an example).