티스토리 뷰

웹프로그래밍/ASP Classic

Batch file uploader

공허공자 2009. 3. 31. 12:00

[참고] http://mlmlml.yaekumo.com/MultiFileUpload/


mupload_form.htm
- 파일 업로드 폼

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">

	
	

	

</head>

<body>

	
Multi File Uploader

    attached files will be shown here

drop any added files to delete
</body> </html>

mupload.asp
- 파일 업로드를 처리

<%
'----------------------------------------------------------------------
' Upload backend process
'----------------------------------------------------------------------
Set Upload = Server.CreateObject("TABS.Upload")
Upload.Start Server.Mappath("./data")
Set uFiles = Upload.Form("attachedFiles[]")
'Response.Write(uFiles.count) : Response.End
For Each uFile In uFiles
	uFile.Save
Next

Set Upload = Nothing
%>


'웹프로그래밍 > ASP Classic' 카테고리의 다른 글

Ajax Upload  (0) 2009.04.01
ASP Xtreme Evolution Framework  (0) 2009.04.01
ASP XML DOM  (0) 2009.03.31
자바스크립트를 이용한 세션 자동 연결 종료 체킹  (0) 2009.03.26
ASP에서 XML 다루기 Microsoft.XMLDOM  (0) 2009.03.25
댓글