I have no clue left...
Context
A 2 pages Angular application :
- one page to list pictures (pictures files are store in "assets/picture")
- one page to upload picture, by post them to a node/express API which is in charge to move picture into "assets/picture" angular folder
Issue
Uploaded picture can not be displayed 1 using src="assets/image/fileName.jpg" (got a 404) before an angular code new compilation or a server reboot 1
Note : I can display a picture preview in upload page by using src="data:image/jpeg;base64..." method 2
Intuition : Im afraid I'm not suppose to upload files in Angular assets folder but somewhere else may be at the root of the node server. Here is my current file organization : 3
Code
Node server
to move picture in angular "assets/image" folder
pictureFile.mv('src/assets/picture/'+ fileName);
Angular
<img class="picture" src="'src/assets/picture/'{{fileName}}">
Regards, Valink