HostNed Community

WEB HOSTING DISCUSSIONS => Windows Hosting => Topic started by: ctwjr on May 08, 2006, 10:42:05 AM

Title: How to use Dundas Upload for ASP
Post by: ctwjr on May 08, 2006, 10:42:05 AM
For uploading files on Windows servers (I am on server WIN2 and it works great), HostNed supports Dundas ASP Upload -- a very easy to use component.

Here is an example:

It's very easy to use. You will need to create 2 files

1. upload.html
<html>
<body bgcolor="#FFFFFF">
     <form method="POST" enctype="multipart/form-data" action="upload.asp">
          <input type="FILE" size="40" name="FILE1"><br>
          <input type="FILE" size="40" name="FILE2"><br>
          <input type="FILE" size="40" name="FILE3"><br>
     <input type=submit value="Upload!">
     </form>
</body>
</html>


2. upload.asp
Dim objUpload
Set objUpload = Server.CreateObject("Dundas.Upload.2")

objUpload.MaxFileSize = 150000
objUpload.UseVirtualDir = True
objUpload.UseUniqueNames = False

objUpload.Save "/upload"

Set objUpload = Nothing

Response.Write "Files Uploaded Successfully!"


Give it a try.