How to implement document management folder per doctype?

If we have a structured folder in the server per doctype, is there a way if a user upload files, then it will be automatically put them in its doctype folder?

1 Like