HostNed.comHostNed Forums
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 28, 2008, 12:42:57 AM
248 Posts in 90 Topics by 65 Members
Latest Member: apurvis
Home Help Search Login Register
HostNed Forums  |  WEB HOSTING  |  Windows Hosting  |  Topic: How to use Dundas Upload for ASP 0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: How to use Dundas Upload for ASP  (Read 2047 times)
ctwjr
Newbie
*
Gender: Male
Posts: 22


HostNed is the best!


View Profile WWW
How to use Dundas Upload for ASP
« 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
Code:
<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:
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, 11:00:39 PM by Dynaweb » Logged

I yam what I yam - Mr Potato Head
Pages: [1] Print 
HostNed Forums  |  WEB HOSTING  |  Windows Hosting  |  Topic: How to use Dundas Upload for ASP « previous next »
Jump to: