Thanks for the idea, I did something similar except I looped through all the sites (7 in this case) looking for the file:
fileInfo = (fileInfo ?? MediaFileInfoProvider.GetMediaFileInfo(fileGuid, CurrentSiteName));
if (fileInfo == null)
{
InfoDataSet<SiteInfo> _sites = SiteInfoProvider.GetAllSites();
foreach(SiteInfo s in _sites)
{
fileInfo = (fileInfo ?? MediaFileInfoProvider.GetMediaFileInfo(fileGuid, s.SiteName));
if (fileInfo != null)
{
break;
}
}
}
if (fileInfo != null)
{
....