HTML
Javascript
Flash Actionscript
PHP
mySQL
ASP
MS-SQL
Linux
Others
Ziwoo Board
Portfolio
About
|
|
ASP |
|
|
|
** upload.asp **
<HTML>
<HEAD>
<TITLE> upload Æû ÆÄÀÏ </TITLE>
</HEAD>
<BODY>
<form method="post" name="F" enctype="multipart/form-data" action="up_abc.asp">
<input type="text" name="name"><br>
<input type="file" name="attachfile"><br>
<input type="submit" value="ÆÄÀϾ÷·Îµå">
</form>
</BODY>
</HTML>
*** up_abc.asp **
<%
'*** abc¾÷·Îµå ÄÄÆÛ³ÍÆ®·Î ¾÷·Î¸£ Çϱâ...
set theform=server.createobject("ABCupload4.Xform")
'abc ¾÷·ÎµåÀÇ °æ¿ì, request ´ë½Å ³»°¡ ¸¸µç °´Ã¼¸¦ »ç¿ë..¿©±â¼´Â theform
theform.absolutepath=true '¹°¸®ÀûÀÎ °æ·Î»ç¿ë
theform.overwrite=true ' ÆÄÀÏÀ» µ¤¾î¾²±â
theform.MaxuploadSize=10240000 'default 8MB max 100MB
response.write "´ç½ÅÀÇ À̸§Àº"& theform("name") &"ÀÔ´Ï´Ù.<br>"
response.write "ÆÄÀÏÀÇ Å©±â´Â"& theform("attachfile")(1).length &"byteÀÔ´Ï´Ù.<br>"
response.write "ÆÄÀÏÀÇ À̸§Àº"& theform("attachfile")(1).safefilename &"ÀÔ´Ï´Ù.<br>"
set thefield=theform("attachfile")(1)
if thefield.fileExists then ' ÆÄÀÏÀúÀå
thefield.save server.mappath("\")&"\upload\"&thefield.safefilename
response.write "ÆÄÀϾ÷·Îµå OK"
else '¾÷·Îµå ÇÒ ÈÀÏÀÌ Á¸ÀçÇÏÁö ¾Ê´Â ´Ù¸é
response.write"ÆÄÀϾ÷·Îµå No"
end if
%>
Ãâó : http://blog.naver.com/kkdksb00/100004019099
|
|
|
|
|
|
|