Customizing Upload Path for Attach Field in Frappe

Subject: Customizing Upload Path for Attach Field in Frappe

Hi everyone,

I’m having trouble with the Attach field . All files are being uploaded to /private/files/file, and I need them to go to specific subfolders within the private directory.
example - /private/files/pancards/file
Is there a way to set custom upload paths for the Attach field? Any help or examples would be appreciated!

Thanks

Maybe in this conversation you get solution: