【发布时间】:2013-03-26 01:46:36
【问题描述】:
ImageURL = String.Format(@"../Uploads/docs/{0}/Logo.jpg", SellerID);
if (!File.Exists(ImageURL))
{
ImageURL = String.Format(@"../Uploads/docs/defaultLogo.jpg", SellerID);
}
每次我检查是否有文件时,我都会得到图像中的默认徽标,是否有超出权限检查的内容。
注意:这是网站上引用的类库
【问题讨论】:
-
此代码是在网站/服务中远程运行还是在本地运行?
-
它在本地,但是我得到了 defaultLogo,但文件存在似乎只适用于完整的 url,关于文件如何存在的任何深入,任何链接??