Add to Favorites    Make Home Page 1226 Online  
 Language Categories  
 Our Services  

Home » ASP Home » Components Home » Uploading with SA-FileUp

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Uploading with SA-FileUp
Description SA-FileUp is an Active Server component that allows users with a web browser to transmit files from their local hard disk to a Microsoft Internet Information Server (IIS) web server. Scripting the Upload Your file upload script(s) will consist of two parts: An HTML form on the client An instance of the SA-FileUp object on the server To try SA-FileUp, browse to select a small file on you system and hit Upload File.
Category ASP » Components
Hits 384035
Code Select and Copy the Code
<HTML><HEAD> <TITLE>uploadsimple.asp by softwareartisans.com</TITLE> </HEAD><body bgcolor="#FFFFFF"> <form enctype="multipart/form-data" method="post" action="uploadsimplerespond.asp"> <TABLE WIDTH="100%"> <TR> <TD ALIGN="RIGHT" VALIGN="TOP">Filename:</TD> <TD ALIGN="LEFT"><Input Type="FILE" NAME="FILE1"> </TD> </TR> <TR> <TD ALIGN="RIGHT"> </TD> <TD ALIGN="LEFT"><Input Type="SUBMIT" NAME="SUB1" VALUE="Upload File"></TD> </TR> <TR> <TD ALIGN="RIGHT"> </TD> <TD ALIGN="LEFT"> <B><I><SMALL>Note: If a button labeled "Browse..." does Not appear, Then your browser does Not support File Upload. For Internet Explorer 3.02 users, a free add-On Is available from Microsoft. If you <b>Do Not see a Browse... button</b> <A HREF="http://www.microsoft.com/msdownload/ieplatform/iewin95/iewin95.asp" TARGET="_new">click here To go To Microsoft's Site and get your free file upload add-on</A>. Select "Internet Explorer 3.02 File Upload Add-On for Windows 95 & NT". </SMALL></I></B> </TD> </TR> </TABLE> </form> </BODY></HTML> The Form Definition To enable file upload, include an Input tag of <Type="FILE"> In your HTML form. When using a form To upload files, you must Set the following attributes: The FORM tag must include the attribute ENCTYPE="multipart/form-data". The <Input Type="FILE"> must include the NAME attribute. The Server-side Processing The responder To the form will look like this: <HTML><HEAD> <TITLE>Uploadsimplerespond.asp by softwareartisans.com</TITLE> </HEAD><BODY> Thank you For uploading your file.<br> <% Set upl = Server.CreateObject("SoftArtisans.FileUp") upl.Path = Server.MapPath ("/upload/tests") upl.SaveAs "upload.tst"%><BR> Total Bytes Written: <%=upl.TotalBytes%> </BODY></HTML> To process the upload On the server, In the response page (In this Case, uploadsimplerespond.asp) create an instance of the SA-FileUp object. <% Set upl = Server.CreateObject("SoftArtisans.FileUp") %> Save the file In a directory On the web server. <% upl.SaveAs "C: empupload.out" %> The TotalBytes Property contains the size In bytes of the uploaded file. The directory On the web server must have Read, Write, And Delete NTFS permissions For the anonymous Or authenticated user. Otherwise, SA-FileUp will Not be able To Write files into that directory. Talk To your web master about setting the appropriate permissions.

Related Source Codes

Script Name Author
��������������������� VyomWorld
Resistor color code reader A.Chermarajan.
Telephone Directory dhivya
card swapping game (Mini Project) nityanand
simple hangman-pascalsource Seabert
college dirtectory (Mini Project) msridhar
Poll Application John van Meter
ASP Daily Hit Counter. Tejaskumar Gandhi
To avoid null in asp environment using sql Sami
Maklumbalas webmaster
poll John van Meter
EasyASP Template Engine. TjoekBezoer
Basic Calculator using HTML & Javascript. Patrick M. D Souza
What servers support ASP ? VyomWorld
What is ASP? VyomWorld

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=394


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review