Windows 2003 Web Hosting 2003 Web Hosting
Windows Hosting Company Info asp.NET web hosting Microsoft Web Hosting Windows 2003 Web Hosting Windows 2003 ASP Hosting 2003 Web Hosting Windows 2003 Hosting
Windows 2003 Web Hosting Windows 2003  Web Hosting

ASP Upload Script 

When you use ASPUpload script on your site, you allow an upload via a form on your site and the file is then put into a directory on your server.

Note: The directory /Uploads should be created in your web server root before running this script. Also, be sure to have the permissions set for this new directory to allow "Everyone" read/write access.  You can download a set of example forms in a zip file here.

ASPUpload is an Active Server Page component which enables an application to accept, save and manipulate files uploaded with a browser. To use ASPUpload you will need to create 2 pages: a form page and an action page.

The form page, form.html in this example, will contain a standard html form.

<HTML>
<BODY BGCOLOR="#FFFFFF">
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="uploadscript.asp">
<INPUT TYPE=FILE SIZE=60 NAME="FILE1"><BR>
<INPUT TYPE=FILE SIZE=60 NAME="FILE2"><BR>
<INPUT TYPE=FILE SIZE=60 NAME="FILE3"><BR>
<INPUT TYPE=SUBMIT VALUE="Upload!">
</FORM>
</BODY>
</HTML>
 

The action page, uploadscript.asp in this example, will contain the ASPupload script.

<HTML>
<BODY>

<% Set Upload = Server.CreateObject("Persits.Upload.1")
Count = Upload.SaveVirtual("virtual_directory_name") %>
<% = Count %> files uploaded.

</BODY>
</HTML>
 

* If you are using a web builder like Frontpage you will need to enter the ASP code in HTML view.

It is important that you let us know what directory you would like the files to be uploaded so that we can set the right permissions for you on that directory.


 

ASPUpload is very easy to use and configure. If you do need to use it, please let us know which folder you will be allowing uploads to as we will need to enable write permissions for that folder.

If you download the set of example forms in a zip file from the link above, there are three places in this script where you will need to edit:

Line 8: Upload.SetMaxSize 1048576 ' Limit files to 1MB
Line 9: Count = Upload.Save("c:\upload")
Line 40: <IMG SRC="/uploaddir/<% = File.FileName%>"><BR><B><% = File.OriginalPath%></B><BR>

Line 8 is the file size limit in bits
Line 9 is the folder you will be uploading to. You will need to change it to something like: e:\html\domains\yourdomain.com\wwwroot\upload
Line 40 just does an img src of the upload, if it is a jpg or gif. You would want to change it from uploaddir to upload if you wanted to use it. Or you can totally remove it.
 

 

Windows 2003 Hosting

 

1PlanHost provides affordable Windows 2003 ASP, ASP.NET and FrontPage Web Hosting solutions for thousands of companies and non-profit organizations worldwide. With our Windows 2003 hosting 100% Uptime and 45 Day Full Money Back Guarantee, it is hard to beat us in terms of reliability and value. Since 1996 our commitment has been to provide customers with the most reliable servers and outstanding support. Sign up now to begin your positive Windows 2003 web hosting experience with 1PlanHost.com An innovative Windows 2003 Resellers Web Hosting Program is also available. We are looking forward to serving you!
Darrell Williams
 
Customer Care (Support)
Hosting Technical Support Customer Care HelpDesk

Tutorials and FAQ
Support Tutorials Directory Getting Started Tutorial Control Panel Tutorials
Email Tutorials FrontPage Tutorials FTP Tutorials
ASP Tutorials Database Tutorials
Miscellaneous Tutorials Frequent Asked Questions

Account Management
Account Control Panel Update Account Info Form Cancel Hosting Account

Renewing Existing Services
Renew Web Hosting Account

Adding New Services
Order Web Hosting Account Add 1000 MB to Account



microsoft asp hosintg

Windows 2003 Web Hosting
Order Windows 2003 Web Hosting



Testimonials:

"BEYOND Reliable, Reasonable & Respectable!"
-- Gina Madison

"Friendly service and good value"
-- John C. Stephenson

Read more quotes...


ASP hosting

windows 2003 .net hosting