ASP Code
  Home arrow ASP Code arrow How to setup web page to upload files
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP CODE

How to setup web page to upload files
By: aspfree
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 16
    2000-04-15

    Table of Contents:

    Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Lots of emails, forum posts and newsgroup posts are about uploading files and pictures from a web site. This is one of thetop search items on ASPFree.com.There are plenty of good upload components, (SA-Fileup is the best one I've used, ASPSmartupload is the best free one I've used). SA-Fileup provides many advanced features in their component. Paying for it is well worth if your in a corporate, enterprise or large scale solution. Using components such as ASPSmartupload to do nothing more to give the capability of uploading and having mixed forms is sufficient. They provide working examples and are easy to implement.

    Step 1.  Download a component and install on the server.  (For this article we chose ASPSmartUpload install documentation)
    Step 2.  Create a page with a form with the <form enctype="multipart/form-data" method="post" action="somfile.asp" name="form1">
    Step 3.  Create a textbox inside the form with the type of File. This will automatically put the button by the text box. The form below demonstrates what is need to be inside your .asp page.

    How to setup a form and textbox to prepare for a person to upload a file

    <form enctype="multipart/form-data" method="post" action="somfile.asp" name="form1">
    <table width="80%">
    <tr>
    <td align=right>
    <font face="Arial, Helv"><b>File to Upload</b></font>
    </td>
    <td>
    <input type="file" name="item" size="30">
    &nbsp;
    </td>
    </tr>
    </table>
    <table border=0 bgcolor="#CCCCCC" cellpadding=3 cellspacing=3>
    <tr>
    <td colspan="2">
    <input name="btnSubmit" type="Submit" value="Submit">
    </td>
    </tr>
    </table>
    </form>


    ASPSMARTUPLOAD Installation : DOCUMENTATION
    Setup Instructions
    Last modified: August 1st, 1999
    © 2000 Advantys. All rights reserved.

    To download ASPSmartUpload Click here

    Overview

    The installation of aspSmartUpload can be broken down into four main stages :

    - extract the downloaded file
    - saving the aspSmartUpload.dll file on the NT server
    - add the aspSmartUploadUtil.dll fils in the NT server Path
    - install the samples

    These four stages are fully described below.


    Configuration required

    Server :
    - 300Ko of free disk space
    - Windows NT 4 Service pack 3+, Microsoft IIS 4
    or Windows 95+, Personal Web Server, ASP
    or Windows 2000

    For Microsoft IIS 3 users :
    + VB5 Runtime
    + asp.dll (version 1.0b+) : http://www.microsoft.com/office/intranet/modules/asp411s3.asp

    Browser :
    Your browser must be RFC 1867-compliant to be able to upload files.
    Netscape 3+ and Microsoft IE 3.02+ accept the RFC 1867.


    Stage 1 : Extract the downloaded file

    All the aspSmartUpload files are supplied in the zipped file, aspSmartUpload.zip.
    Extract aspSmartUpload.zip to a temporary directory, making sure the directory structure remains intact. If, for example, you extract the file to \temp, you should see the following :


    Stage 2 : Install aspSmartUpload.dll

    You have to register aspSmartUpload.dll on your server. The dll can be registered by using either Regsvr32.exe OR Microsoft Transaction Server (MTS).

    1st Solution: Using RegSVR32
    Copy aspSmartUpload.dll into a directory on the NT server (e.g. c:\mydir).
    Save the component using the commands :
    REGSVR32.EXE c:\mydir\aspSmartUpload.dll (From DOS or the Start/Run prompt)

    2nd Solution: Using Transaction Server

    Select the NT server on which you wish to install aspSmartUpload.
    Create a new batch.
    In the component folder, create a new component called aspSmartUpload.
    Paste aspSmartUpload.dll to the Transaction Server to save it.


    Stage 3 : Install aspSmartUploadUtil.dll

    The objective is to enable the Operating System to access the aspSmartUploadUtil.dll file.

    There is two ways to archieve this :
    - Copy aspSmartUploadUtil.dll in the c:\winnt\system32 directory. That way you don't have to update the PATH propertie.
    - Copy aspSmartUploadUtil.dll into a directory on the NT server (e.g. c:\mydir).
    Add the component directory in the PATH using the commands :
    PATH=%PATH%;c:\mydir (From DOS)


    Stage 4 : Install samples

    Installation
    The ASP application must be installed in an ASP-script-enabled web directory.

    If your site has the following structure :
    \inetpub
    \inetpub\scripts
    \inetpub\wwwroot

    Copy the
    \temp\aspSmartUpload\MyInetpub\scripts\aspSmartUpload directory
    to the
    \inetpub\scripts directory on your server.
    Copy the
    \temp\aspSmartUpload\MyInetpub\wwwroot\aspSmartUpload directory
    to the
    \inetpub\wwwroot directory on your server.

    Test
    Using your browser, enter the following addresses :
    http://your_web_server/aspSmartUpload/default.htm



    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    More ASP Code Articles
    More By aspfree

     

    IBM® developerWorks developerWorks - FREE Tools!


    IBM – Taking Web 2.0 to Work

    You'll get answers to many questions and more from David Barnes, Lead Evangelist for IBM Emerging Internet Technologies. David will discuss aspects of Web 2.0 that bring value to corporations, academia, and government. He'll also discuss IBM's vision around Web 2.0, including the importance of remixability and consumability. The discussion will culminate with examples of various IBM Software Group solutions you can use to get ahead of the Web 2.0 adoption curve.
    FREE! Go There Now!


    NEW! Driving Business Success with Rational Process Library

    Join this webcast, to learn how the Rational Process Library can help with compliance issues, drive process improvement, and assist in service-oriented architecture (SOA) or Agile development. We will take a peek into the Rational Process Library with content around software and systems engineering (including RUP), operations and systems management, program and portfolio management, and asset and SOA governance.
    FREE! Go There Now!


    NEW! Cook up Web sites fast with CakePHP, Part 4: Use CakePHP&apos;s Session and Request Handler components

    CakePHP is a stable production-ready, rapid-development aid for building Web sites in PHP. This "Cook up Web sites fast with CakePHP" series shows you how to build an online product catalog using CakePHP.
    FREE! Go There Now!


    NEW! Download IBM WebSphere Portal V6.1 beta code

    Download the IBM WebSphere Portal V6.1 beta code and learn more about the rich features and enhancements in IBM WebSphere Portal V6.1. WebSphere Portal provides a composite application or business mashup framework and the advanced tooling needed to build flexible, SOA-based solutions, and scalability to meet the needs of any size organization.
    FREE! Go There Now!


    NEW! Harnessing the power of SQL and Java for high performance data access

    Join this webcast to see how IBM Data Studio Developer and pureQuery can take the pain out of Java data access. uApplications developed using both Java and SQL have become a common requirement. Database connectivity using Java Database Connectivity (JDBC) to create an application is a multi-step tedious process, and tooling that covers both SQL and Java has been unavailable, until now. IBM Data Studio introduces the pureQuery platform: a high-performance, Java data access platform focused on simplifying the tasks of developing, managing, and optimizing database applications and services.
    FREE! Go There Now!


    NEW! Rational Talks to You:Per Kroll on Rational Method Composer Plug-in customization

    Join this Rational Talks to You teleconference on December 11 at 1:00 pm ET to get tips on building your own plugins with Rational Method Composer. Get your questions answered!
    FREE! Go There Now!


    NEW! The role of integrated requirements management in software delivery

    This paper is about the critical role that a discipline called integrated require­ments management can play in helping to ensure that your business goals and IT investments are continuously aligned—whether you are sourcing, integrat­ing, building or maintaining software. It also looks at ways that automated IBM Rational® products can work together to help you use requirements in the very best way.
    FREE! Go There Now!


    NEW! Understanding Web application security challenges

    As businesses grow increasingly dependent upon Web applications, these complex entities grow more difficult to secure. Most companies equip their Web sites with firewalls, Secure Sockets Layer (SSL), and network and host security, but the majority of attacks are on applications themselves – and these technologies cannot prevent them. This paper explains what you can do to help protect your organization, and it discusses an approach for improving your organization’s Web application security.
    FREE! Go There Now!


    NEW! Webcast: Extreme transaction processing with WebSphere Extended Deployment

    In this webcast, you'll get an introduction to the eXtreme Transaction Processing (XTP) features of WebSphere Extended Deployment and the common architectural traits required by XTP applications. See how WebSphere Extended Deployment's ObjectGrid feature provides a state-of-the-art infrastructure for hosting XTP applications.
    FREE! Go There Now!


    NEW! Webcast: WebSphere Process Server

    WebSphere Process Server delivers a unique integration framework that simplifies existing IT resources. Often, as IT assets grow to support business demand, so too does their complexity and manageability. In this webcast, we’ll discuss how WebSphere Process Server helps deliver an SOA infrastructure that provides a common model to orchestrate, mediate, connect, map, and execute the underlying IT functions. Discover how WebSphere Process Server simplifies integration of business processes by leveraging existing IT assets as reusable services without the complexities of traditional integration methodologies.
    FREE! Go There Now!



    All FREE IBM® developerWorks Tools!

    ASP CODE ARTICLES

    - ASP Forms
    - ASP: The Beginning
    - Getting Remote Files With ASP Continued
    - Inbox and Outbox Manipulation in ASP
    - Relational DropDownList Using VB.NET
    - Ad Tracking URL Hits
    - Use ViewState to display one record per page...
    - Send Email using ASP.NET formatted in HTML
    - ASP File Explorer
    - ASP/XML Interview questions by Srivatsan Sri...
    - Various methods of setting Date values to a ...
    - Conditional DataGrid Item and using checkbox...
    - Fill .NET Listbox with SQL DataReader
    - Filling Dropdown box using Code-Behinds in C#
    - FLAMES code sample written in .NET What is F...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    Stay green...Green IT