I'm actually developping an application using Angular2 and Node.js.
I started the Angular2 part with Angular-cli.
I have an issue concerning file upload. In the application, I can create Albums. In the Album form, there is a file input. In the backend, I store files, actually images, in a files directory in my assets.
The problem is, when I try to display this images, they don't display. I need to re-run "ng build" to see them. I assume this is due to the fact this newly uploaded files are not present in the dist directory.
Is there a way to dynamically refresh dist directory after the file upload ?
Is it a correct way to directly copy files in the dist (and still in assets) directory during the upload ?
Have a good day,
Thanks