Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 129,733 times

Contents

Related Categories

Uploading Files with ASP - Introduction

Introduction

A very frequent question regarding Active Server Pages is "how do I allow a user to upload a file"? Unfortunately, the answer is not particularly straight forward. Active Server Pages itself provides no standard functions, and so you have to rely on either a custom ASP script or a third-party ActiveX DLL.

There are a number of ASP script solutions around, however, due to the non-compiled nature of ASP, combined with its fairly limited commands (even compared to VB), these are extremely inefficient and server intensive. The second solution is an ActiveX DLL. Components such as EZsite UpLoad are available as freeware, however, without access to the source code you are limited in terms of flexibility. Therefore, in this tutorial, we will cover all the necessary steps for creating an ASP page, and a VB ActiveX component for use within your script to enable a file to be uploaded.

Hosting Limitations
You should be warned that, before we start, not all hosting packages allow you to upload your own ActiveX components. If this is the case, then unfortunately you will have to revert to a pure ASP script.

James first started writing tutorials on Visual Basic in 1999 whilst starting this website (then known as VB Web). Since then, the site has grown rapidly, and James has written numerous tutorials, articles and reviews on VB, PHP, ASP and C#. In October 2003, James formed the company Developer Fusion Ltd, which owns this website, and also offers various development services. In his spare time, he's a 3rd year undergraduate studying Computer Science in the UK. He's also a Visual Basic MVP.

Comments

  • Invalid class string error

    Posted by selvass on 19 Apr 2005

    When i call to component in asp, when i run the uploaddemo.asp, i choose one file, once i press uploading
    showing at Invalid class string error. please help me this how to solve this.

  • A progress Bar for the Upload Component

    Posted by haguila on 12 Apr 2005

    Hi:
    The component is really good, the code works fine and it has not any problem when is impersonated via MTS.
    So, congratulations.
    From my ignorance the problem is the Event Blindness: I cannot mo...

  • Doubt

    Posted by livinvarghese on 03 Dec 2004


    Hello,

    how i can upload an Excel file which having the file Size 6MB by ASP.NET to the database.

  • ASP and VB DLL Debuggubg

    Posted by sunnysuku on 01 Apr 2004

    Please Help me !!
    How can I debug ASP pages and VB compenets . Ie I have ASP pages in Visual Interdev. These pages talking with few DLLS. I have the VB Source code for these dlls also. Please tell me...

  • what are the components of ASP?

    Posted by preetha on 01 Mar 2004

    What are the components of ASP and VB? Pls help me.