를 클릭하여 다른 브라우저 인스턴스에서 페이지를 엽니 다 내가 어떻게 링크를 다른 탭이나 페이지에서 이미지를 열 수있다링크
<a id="DownloadLink" href='controller/action' target="_blank">Download File</a>
있습니다. 하지만 파일을 다운로드 할 수 있습니다.
내 작업은 콘텐츠 형식이 이미지/JPEG
무슨 잘못을하다이
public FileContentResult GetSurveyFile(int Id)
{
if (Id == 0)
return null;
Survey survey = Repository.GetItem(Id);
if (survey.File == null)
return null;
return File(survey.File.FileContent.ToArray(), survey.File.ContentType,survey.File.Name);
}
처럼 보인다?
"image/jpeg"MIME 유형을 처리하도록 브라우저가 어떻게 구성되어 있습니까? – korona
여기의 문제는'Content-Disposition' 헤더입니다. – SLaks
어떻게 콘텐츠 처리를 변경할 수 있습니까 ??? – CoffeeCode