and go to INSERT
and click blank FOOTER
and go to QUICK PART

and then FIELD

Open word file and go to INSERT >> FOOTER >> BLANK
FOOTER >> QUICK PARTS>> FIELD >> Select FIELD NAME >> FILE NAME >>
Tick mark ADD PATH TO FILE NAME
If you face any problem then see this video
If you face any problem then see this video