<div dir="ltr">Thanks Bob. You are right.<div><br></div><div>I have moved the "data" folder to priv/www but left the login.dtl file in the templates folder. </div><div>The image is now visible. </div><div><br></div><div>However, the Mochiweb documentation does not clearly state how to handle URL's. How are URL's handled by Mochiweb?</div><div><br></div><div><br></div><div><div>austin@aviela:~/fe$ ls -LR</div><div>.:</div><div>bench.sh deps ebin Makefile priv rebar rebar.config src start-dev.sh templates</div><div><br></div><div>./priv:</div><div>www</div><div><br></div><div>./priv/www:</div><div>data</div><div><br></div><div>./priv/www/data:</div><div>canvas-tools.js exporting.js jquery-2.1.1.min.js</div><div>d3.5.5_dynatrace.js exportingOffline.js jquery.gridster.extras.js</div><div>d3.geo.projection.v0.2.12.min.js fonts.css jquery.gridster.js</div><div>d3map.js highcharts-4.0.3.js logo_300x175.png</div><div>d3.tip.v0.6.3.js highcharts-4.0.3-more.js topojson.v1.6.18.min.js</div><div><br></div><div>./templates:</div><div>login.dtl</div><div><br></div></div><div>BR,</div><div>Austin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 26, 2015 at 2:57 PM, Bob Ippolito <span dir="ltr"><<a href="mailto:bob@redivi.com" target="_blank">bob@redivi.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Looks like you aren't putting the files in the right place. Impossible to tell without the code for the server, but the default project template for mochiweb serves static files from priv/www. <div class="HOEnZb"><div class="h5"><br><br>On Saturday, September 26, 2015, austin aigbe <<a href="mailto:eshikafe@gmail.com" target="_blank">eshikafe@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">Hello,</span><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px">My browser is unable to display images from my mochiweb server - please see attached file.</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px">I am using erlydtl for rendering.</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px">What could be the reason for this?</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px">Setup:</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"> Mochiweb</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px">---------------------------</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"> Erlang/OTP 18</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px">---------------------------</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"> Ubuntu 14.04.3</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px">---------------------------</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"> VirtualBox 5.0.4</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px">--------------------------</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"> Windows 7</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px">-------------------------</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px">File structure:</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">austin@aviela:~/fe$ ls -l</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">total 232</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxr-xr-x 1 austin austin 310 Sep 25 18:25 bench.sh</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">drwxrwxr-x 5 austin austin 4096 Sep 25 19:17 deps</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">drwxrwxr-x 2 austin austin 4096 Sep 26 12:06 ebin</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rw-rw-r-- 1 austin austin 418 Sep 25 18:25 Makefile</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">drwxrwxr-x 3 austin austin 4096 Sep 25 18:25 priv</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrw-r-- 1 austin austin 199962 Sep 25 19:17 rebar</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rw-rw-r-- 1 austin austin 313 Sep 25 19:13 rebar.config</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">drwxrwxr-x 2 austin austin 4096 Sep 26 12:06 src</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxr-xr-x 1 austin austin 119 Sep 25 18:25 start-dev.sh</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">drwxrwxr-x 3 austin austin 4096 Sep 26 11:34 templates</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">austin@aviela:~/fe$ ls -l templates/</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">total 20</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">drwxrwxr-x 2 austin austin 4096 Sep 26 11:33 data</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rw-rw-r-- 1 austin austin 16339 Sep 26 11:34 login.dtl</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">austin@aviela:~/fe$ ls -l templates/data/</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">total 668</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 57348 Sep 25 20:05 canvas-tools.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 150767 Sep 25 20:05 d3.5.5_dynatrace.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 46151 Sep 25 20:05 d3.geo.projection.v0.2.12.min.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 6916 Sep 25 20:05 d3map.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 2679 Sep 25 20:05 d3.tip.v0.6.3.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rw-rw-r-- 1 austin austin 43649 Sep 26 11:29 dynatraceLogo.jpg</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 7365 Sep 25 20:05 exporting.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 1229 Sep 25 20:05 exportingOffline.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 3773 Sep 25 20:05 fonts.css</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 153218 Sep 25 20:05 highcharts-4.0.3.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 23135 Sep 25 20:05 highcharts-4.0.3-more.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 84995 Sep 25 20:05 jquery-2.1.1.min.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 2287 Sep 25 20:05 jquery.gridster.extras.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 43758 Sep 25 20:05 jquery.gridster.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 21325 Sep 25 20:05 login_logo.png</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">-rwxrwxr-x 1 austin austin 6142 Sep 25 20:05 topojson.v1.6.18.min.js</font></div><div style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" size="2" style="margin:0px;padding:0px;border:0px">austin@aviela:~/fe$</font></div></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px">Thanks.</div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px"><br></div><div style="margin:0px;padding:0px;border:0px;font-family:Arial,Helvetica,sans-serif;font-size:13px">Austin</div></div>
</blockquote>
</div></div></blockquote></div><br></div>