web 2.0

How to use ASP & aspSmartUpload - Multiple input file upload

How to use ASP & aspSmartUpload - Multiple input file upload This is learn/tutorial asp developers how to using ASP script upload file by aspSmartUpload and Multiple input file upload.

ShotDev Focus:
- ASP & Upload file by aspSmartUpload and Multiple input file upload.

Example

asp_multiple_upload1.asp


<% OptionĀ  Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form action="asp_multiple_upload2.asp" method="post" enctype="multipart/form-data" name="frmMain">
Upload 1
<input name="file1" type="file"><br>
Upload 2
<input name="file2" type="file">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>

asp_multiple_upload2.asp


<% OptionĀ  Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Dim mySmartUpload
Dim intCount

'*** Create Object ***'
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")

'*** Upload Files ***'
mySmartUpload.Upload

'*** Save Path ***'
intCount = mySmartUpload.Save(Server.MapPath("MyFiles/"))

Response.Write(intCount & " file(s) uploaded.")

Set mySmartUpload = Nothing
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_multiple_upload1.asp

Screenshot

ASP & Upload file by aspSmartUpload and Multiple input file upload.
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.