ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

Attach File From Child Table

When I try to upload file from child table it not show in the parent and this cause three problems.

But before list the problems
the child table created in employee and named Employee Attachment + my version is v12.25.0.

Now the problems are
1- first the file linked to the child table instead of the parent

2- as the second image show the name of the child table is wrong because the File Doctype being created before the child table being created in the database with Randoms generated name and because of that every time I try to access the file this error popup

3- because the name is wrong this code of file permissions show

no one will have access on it unless you are the admin or owner because when it search for the name it not exists


thanks in advance and sorry to combine the three photos because i don’t have the ability to upload more than one page