I need to upload files to server and that part I have successfully done, but now I need to know what is best practise to save files that are related to database items to disk with Spring and how that is actually done with Spring.
I thought it could be good way to use database table id in folder for example:
context_path/table_name/id/filename.file