1
ImageResizer를 사용하여 파일 시스템에 이미지를 저장하고 이미지 URL을 DB에 저장할 계획입니다. 나는 다시 다시 API를 통과했지만 DB의 URL에 포함 할 새로 생성 된 파일 이름을 얻는 명백한 방법으로 찾을 수 있습니다 : 여기에서새 이미지 파일 이름을 얻는 방법
foreach (string fileKey in HttpContext.Current.Request.Files.Keys)
{
HttpPostedFile file = HttpContext.Current.Request.Files[fileKey];
if (file.ContentLength <= 0) continue; //Skip unused file controls.
ImageJob i = new ImageJob(file, "~/eventimages/<guid>_<filename:A-Za-z0-9>.<ext>",
new ResizeSettings("width=200&height=133&format=jpg&crop=auto"));
i.Build();
}
위대한 분들께 감사드립니다! :) – IrishChieftain