0

I'm having trouble accessing an image in cloud9 on AWS.

Here's what I've got:

Screenshot of file tree

This is what I currently have:

<img src="/flexbox/images/img1.jpg"> 

This doesn't work. The html file is here:

/flexbox/views/index.ejs

I've also tried

<img src="../flexbox/images/img1.jpg"> and <img src="../../flexbox/images/img1.jpg">

I'd really appreciate someone explaining to me how to access the file. For further info I'm using node and express.

Thanks,

Raph

Raph117
  • 3,441
  • 7
  • 29
  • 50

1 Answers1

1

This seems like a simple pathing issue. Where is your HTML file in relation to img1.jpg? I don't see the HTML file in your screenshot.