2008년 Flex를 처음 접하면서 개발을 해보았는데 2020년 12월 31일부로 결국 지원 종료의 길을 걷게 되네요.
지금은 Front 제작 도구들이 워낙 다양하다보니 당연한 수순이 아닌가 생각합니다.
그래도 한때는 잘 써먹은 기술이라는 추억을 남기며 잘 가라고 해야겠어요 ㅎㅎ
ㅂㅇ
'Development > Flex(AIR)-끝!' 카테고리의 다른 글
| flash player debug시 waiting 걸리는 경우 (0) | 2011.04.13 |
|---|
2008년 Flex를 처음 접하면서 개발을 해보았는데 2020년 12월 31일부로 결국 지원 종료의 길을 걷게 되네요.
지금은 Front 제작 도구들이 워낙 다양하다보니 당연한 수순이 아닌가 생각합니다.
그래도 한때는 잘 써먹은 기술이라는 추억을 남기며 잘 가라고 해야겠어요 ㅎㅎ
ㅂㅇ
| flash player debug시 waiting 걸리는 경우 (0) | 2011.04.13 |
|---|
| 맥 터미널에서 wget 사용하기 (0) | 2011.08.11 |
|---|
| sqlite manager _ Lita (0) | 2011.08.19 |
|---|
using System.Web.Mvc;
namespace Models
{
public class DownloadResult : ActionResult
{
public string FileName { get; set; }
public string Path { get; set; }
public override void ExecuteResult(ControllerContext context)
{
context.HttpContext.Response.Buffer = true;
context.HttpContext.Response.Clear();
context.HttpContext.Response.AddHeader("content-disposition", "attachment; filename=" + FileName);
context.HttpContext.Response.ContentType = "application/unknown"; // 모든 파일 강제 다운로드
context.HttpContext.Response.WriteFile(context.HttpContext.Server.MapPath(Path));
}
}
}
위와 같이 확장해서 하나 만들어주고 아래와 같이 걸어주고 호출하면 끝... public DownloadResult FileDownload()
{
string fileName = Request["filenames"].ToString();
string filePath = Path.Combine(Server.MapPath("~/Downloads/"), fileName);
return new DownloadResult
{
FileName = fileName,
Path = "~/Downloads/" + fileName
};
}
페이지에서 javascript로 location.href = 'url'; 해주어도 지가 알아서 열기,저장,취소 다이얼로그 창이 잘 떠준다 :)| flash 지원 종료 (0) | 2021.06.22 |
|---|