Page 1 of 1

Gomoku tutorial: Cannot load image onto screen

Posted: 02 November 2023, 14:29
by linhtran190897
Hello, I'm following Gomoku tutorial and I cannot load the Goban.jpg under img onto the screen.
I keep getting either 404 for the GET or Failed to load resource: the server responded with a status of 404 ().


Screenshot 2023-10-13 115222.png
Screenshot 2023-10-13 115222.png (20.95 KiB) Viewed 284 times
Screenshot 2023-10-14 001736.png
Screenshot 2023-10-14 001736.png (9.7 KiB) Viewed 284 times

What I already tried so far:
- Already made sure that SFTP automatically connected: After I hit Cmd + S, VSCode showed "done"
Screenshot 2023-10-13 233312.png
Screenshot 2023-10-13 233312.png (1.98 KiB) Viewed 284 times
- Already cleared cache and tried hard refresh.
- Already checked url of the image. I even tried ../img/Goban.jpg and ../..img/Goban.jpg or other images. None worked.
- Already inserted image by using img tag directly in .tpl file instead of using CSS, did not work.
- Already create another project for Heart. Same issue happened.

Is there any other solution I should try? Please help since I think this is just a minor issue with the SFTP or the framework, but somehow I cannot solve this and move on to finish the tutorial...

Re: Gomoku tutorial: Cannot load image onto screen

Posted: 02 November 2023, 22:23
by RicardoRix
Try WinSCP to see if the image really has been uploaded. WinSCP has a feature to sync a directory (under Commands).

Re: Gomoku tutorial: Cannot load image onto screen

Posted: 02 November 2023, 23:03
by linhtran190897
Oh my god it worked perfectly!! :o Why didn't you recommend this sooner... I still don't understand why the SFTP in vscode doesn't work though but thank you so much! I can sleep well now :D