Customizing Upload Path for Attach Field in Frappe

Maybe in this conversation you get solution: