add fetchUriFromFd func to get file name

Change-Id: Ib123d170f713050378e5e0c10f4e649f68566241