I'm using Java with JSF an Glassfish 3 container. In my web application I'm trying to implement a file(image) management system.
I have a config.properties
file from where I read the path where the uploaded images should be saved.
save.file.path.event = D:\\upload
The file upload works and all the files are in their place but when I try to list the image the browser says that no image could be found.
<img src = "D:/upload/img1.png" />
The web server is in a totally different partition.
Besides the no image found problem I have the following question regarding good practices in this area: If their will be a time when I will publish the application on a web server how safe / correct is to use a path like D:\\upload
? Some issues which come to my mind are the differences between operating systems or the uncertainty of a partition name.