Is there a way to get full name of replaced media
Adobe recently added option to replace image or video in motion graphics panel. Is there a way to get name of replaced media? I need it to be shown on screen using Source Text for text layer.

I tried many methods but non of them worked.
1. I tired to get filename of layer in comp by using thisComp.layer(2).source.name , this gave me filename of placeholder even after replacing it with other media.
2. I tired to get filename of comp that will be replace by using comp("Media to replace").source.name. This also didn't worked.
I need it because we use filename to provide copyright info about media source.
