¾Æ·¡ÀÇ ÄÚµå·Î ÆÄÀÏÀ» ´Ù¿î·Îµå Çϴµ¥
´Ù¿î·Îµå ±îÁö ´Ù µÆ½À´Ï´Ù.
±× ÈÀÏÀ» ¿·Á°í Çϸé file format is not vaild ¶ó´Â »çÀÎÀÌ ³ª¿É´Ï´Ù.
txt ÈÀÏÀº ÀÌ»ó¾øÀÌ ¿¸®´Âµ¥ ±×¿Ü(xls, xlsx, jpg,,,) µîµîÀÇ ÈÀϵéÀº ÈÀÏ Æ÷¸ËÀÌ valid ÇÏÁö ¾Ê´Ù°í ³ª¿É´Ï´Ù.
°í¼ö´Ô! ¹«½¼ ¹®Á¦ÀÎÁö ´äº¯ ÁÖ¼¼¿ä.
<%
filename = Trim(Request("fName"))
response.contenttype = "application/unknown"
response.addheader "content-disposition","attachment; filename=" &filename
Set objStream = server.CreateObject("adodb.stream")
objStream.Open
objStream.type = 1
objStream.loadfromfile "c:\pFile\board\" & filename
download = objStream.read
response.binarywrite download
Set objstream = nothing
%>