Hi Massimo
What I did:
1. I create the app
test with the help of scaffold
2. I save the image file in the static folder.
3. I add the index.html file:
-----------------------------
[[extend 'layout.html']]
<div class="section">
<div class="vars">
[[=message]]
</div>
<img src="image.image_data.b3e1102f4b87de27.646f64656b61656465725f342e706e67.png"/>
</div>
----------------------------
4. I start the server and call:
127.0.0.1/test!!!! the image is displayed !!!!
===============================
If I save the image file in the
uploads folder and change the index.html to
------------------------------------------
[[extend 'layout.html']]
<div class="section">
<div class="vars">
[[=message]]
</div>
<img src="uploads/image.image_data.b3e1102f4b87de27.646f64656b61656465725f342e706e67.png"/>
</div>
-----------------------------------------
then I get in the terminal:
"GET /test/static/uploads/image.image_data.b3e1102f4b87de27.646f64656b61656465725f342e706e67.png HTTP/1.1" - 404 447
only when I copy the uploads folder to the static folder, the image is displayed.
FACIT:
the uploads folder should not be created in scaffold parallel to the static folder.
Greetings Erich