News:

Go to HostNed.com
Welcome.  This is a place to get user-to-user support, learn more, and share ideas.  If you can't find your answers here, feel free to ask by creating a new topic or visit the support ticket system at https://my.hostned.com :)  Have fun here!

Main Menu

How to use Dundas Upload for ASP

Started by ctwjr, May 08, 2006, 08:42:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ctwjr

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.
I yam what I yam - Mr Potato Head