imageupload.html --------------------------------------------------------------------------
<html>
<body>
<form method="post" action="imageupload.asp" enctype="multipart/form-data">
<input type="file" name="fileValue"><br>
<input type="file" name="fileValue"><br>
<input type="submit" name="submit" value="submit">
</form>
<body>
[출처] AbcUpload(다중 파일저장)|작성자 여우구름
imageupload.asp ----------------------------------------------------------------------------
<% @anguage="VBScript" %>
<%
Set theForm = Server.CreateObject("ABCUpload4.XForm")
theForm.Overwrite = True ' 같은이름의 파일이 있으면 덮어쓴다.
For i = 1 to theForm("fileValue").Count
Set theField = theForm("fileValue")(i)
If theField.FileExists Then
theField.Save "images/" & theField.FileName '지정된 절대경로에 저장한다.
Response.Write "File " & theField.FileName & " uploaded"
Else
Response.Write theField.FileName & " No file uploaded"
End If
Next
set theForm = nothing
%>
<html>
<body>
Images uploaded...
</body>
</html>
[출처] AbcUpload(다중 파일저장)|작성자 여우구름
파일삭제---------------------------------------------------------------------------------------
<%
filepath = "images/" & theField.FileName
Set objFS = Server.CreateObject("Scripting.FileSystemObject")
objFS.DeleteFile (server.mappath(filepath))
set objFS = nothing
%>
[출처] AbcUpload(다중 파일저장)|작성자 여우구름