6570. FO 파일다운로드 Response.ContentType = "text/plain" 으로 변경 (추가오류시 ContentType 별로 나누는 작업을 해야함)
This commit is contained in:
parent
22177a7819
commit
7b4e27b907
|
|
@ -94,7 +94,8 @@ namespace NP.Base.Controllers
|
||||||
Response.Clear();
|
Response.Clear();
|
||||||
Response.ClearHeaders();
|
Response.ClearHeaders();
|
||||||
Response.ClearContent();
|
Response.ClearContent();
|
||||||
Response.ContentType = "Application/octet-stream";
|
//Response.ContentType = "Application/octet-stream";
|
||||||
|
Response.ContentType = "text/plain";
|
||||||
Response.AppendHeader("Content-Disposition", "attachment;filename=" + Server.UrlEncode(file.orgname));
|
Response.AppendHeader("Content-Disposition", "attachment;filename=" + Server.UrlEncode(file.orgname));
|
||||||
Response.AppendHeader("Content-Length", file.filesize.ToString());
|
Response.AppendHeader("Content-Length", file.filesize.ToString());
|
||||||
Response.TransmitFile(string.Format("{0}", fileurl));
|
Response.TransmitFile(string.Format("{0}", fileurl));
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,8 @@
|
||||||
@Html.Raw((Model.LectSD.sddesc ?? "").Replace(System.Environment.NewLine, "<br/>"))
|
@Html.Raw((Model.LectSD.sddesc ?? "").Replace(System.Environment.NewLine, "<br/>"))
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@* // [start] pms 6523 - 양식파일 삭제처리 요청 건 *@
|
|
||||||
@*@if (Model.LectSD.sdfgno != null && Model.FileList.Where(w => w.fgno == Model.LectSD.sdfgno).Count() > 0)
|
@if (Model.LectSD.sdfgno != null && Model.FileList.Where(w => w.fgno == Model.LectSD.sdfgno).Count() > 0)
|
||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" class="teskFile">
|
<td colspan="2" class="teskFile">
|
||||||
|
|
@ -36,8 +36,8 @@
|
||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
}*@
|
}
|
||||||
@* // [end] pms 6523 - 양식파일 삭제처리 요청 건 *@
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue