Instead that the user needs to decide where to store files which are then linked, would be userfriendly , that files could just be attached , so user creates a new document and attach the files he would like to havein his document just say attach and choose then the file he would like to attach, and upload then the file into the DB. So that when the main documente is deleted all attchments in this document are also deleted. Like you have a word file, and within the word file you have maybe some pdf.At the moment we create lost files, when the orginal file is deleted and the person forgot to delete all the linked files, they will stay forever.