Author Topic: How to use Dundas Upload for ASP  (Read 5073 times)

0 Members and 1 Guest are viewing this topic.

ctwjr

  • Newbie
  • *
  • Posts: 23
  • Gender: Male
  • HostNed is the best!
    • View Profile
    • FTP Live - Online FTP
How to use Dundas Upload for ASP
« on: May 08, 2006, 09: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
Code: [Select]
<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
Code: [Select]
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.
« Last Edit: May 09, 2006, 10:00:39 PM by Dynaweb »
I yam what I yam - Mr Potato Head

 

members