Child table of private file type ,showing no permission even with document permission

I have a child table of files and even if I permit the document, file permission isn’t applied, files are of private type
How do I deal with this?

If User A uploads the file as private, User B cannot access User A’s file. If the file is public, anybody can access it.