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!


    NEW! Best Practices in Integrated Requirements Management

    Poor Requirements Management capabilities in an Enterprise have been linked to excessive project failures, escalating IT costs, and failure to deliver competitive advantage into the marketplace. Join Brianna M Smith from IBM Rational and learn about how successful organizations align IT and Business stakeholders through collaborative processes and tools for effective requirements management, and how an integrated approach across the IT lifecycle can provide unparalleled visibility and traceability to ensure that project teams are delivering on the business vision by "doing the right things" and "doing things right."
    FREE! Go There Now!


    NEW! Discovering the value of 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!


    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! Hello World: Monitor a simple business process using WebSphere Business Monitor V6.0.2

    This tutorial shows new users of IBM WebSphere Business Monitor Version 6.0.2 how to perform the "Hello World" equivalent for monitoring business process applications. It is intended to help you get familiar with the capabilities of the product.
    FREE! Go There Now!


    NEW! Hello World: WebSphere Service Registry and Repository

    Manage, govern, and share services across your organization by using WebSphere Service Registry and Repository. Follow the hands-on exercises to learn how to navigate the Web interface to publish, find, reuse, and update services.
    FREE! Go There Now!


    NEW! IBM Enterprise Modernization Sandbox for System z: Architecture

    Analysts, architects, and developers who have existing COBOL or PL/I skills and want to extend those skills to deploy new workloads on the mainframe can use the IBM Enterprise Modernization Sandbox for System z to find hands-on walkthroughs of common real world scenarios. The scenarios provide examples of how to rapidly design, create, assemble, test, and deploy high-quality Web, Web services, portal, and SOA applications for IBM CICS, IBM IMS, and IBM WebSphere Application Server.
    FREE! Go There Now!


    NEW! Rational Asset Manager eKit

    Learn how to do more with your reusable assets with the free Rational Asset Manager eKit. The eKit includes demos on how Rational Asset Manager tracks and audits your assets in order to utilize them for reuse. Plus you’ll find white papers and a Webcast that discuss the challenges of a Service Oriented Architecture and how Rational Asset Manager can provide quick and effective solutions.
    FREE! Go There Now!


    NEW! Rational Build Forge Express eKit

    Rational Build Forge Express Edition is an automation framework that packages the latest enterprise-grade technologies into a reliable, flexible and robust configuration designed and priced specifically for small to midsize businesses. The new Rational Build Forge Express eKit provides you with valuable resources – including a case study, podcast, demo, and articles – to help you increase staff productivity, compress development cycles and deliver better software, fast.
    FREE! Go There Now!


    NEW! Try IBM Rational Asset Manager V7.0 online!

    You can now evaluate IBM Rational Asset Manager V7.0 online without installing or configuring it on your own system! Rational Asset Manager helps create, modify, govern, find, and reuse any type of development assets, including SOA and systems development assets. Rational Asset Manager helps you reduce software development costs and improve quality by facilitating the reuse of all types of software development-related assets. Visit developerWorks to learn more about this product and register to explore its capabilities online.
    FREE! Go There Now!


    NEW! Webcast: What is new in Viper 2 for developers?

    Viper 2 brings a great value to developer communities including SQL, XML, PHP, Ruby, .NET and Java. You probably already know that DB2 Express-C is free for developers to develop, deploy and distribute. Viper 2 provides a variety of means that help move your application from the development stage to deployment more rapidly. This webcast shows how to best utilize the latest tools available for developing DB2 applications.
    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 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek