Search Tools Links Login

File Upload Component for ASP Apps (includes demo)


Visual Basic 6, or VB Classic

Want anyone with a common web browser to be able to upload files to your ASP application? Here's a great little component to help you do it.

This component builds on the standard mechanism web browsers provide for uploading files. Since IIS doesn't provide any simple built-in way to deal with this, this component fills the void. Here's how simple your ASP code can be:


    Set Upload = Server.CreateObject("Carnicelli.FileUpload")

    Upload.Save "C:Temp"

    Response.Write "<LI>" & Upload.Form("Email")

    Response.Write "<LI>" & Upload.File(1).FileName


I crammed a number of useful features for manipulating the resulting files, generating unique file names, and more.

This code teaches many programming lessons. It demonstrates MIME processing, array and string manipulation (includes powerful array and string manipulation libraries), generating unique file names, real-time stream processing, interfacing with IIS' built-in objects (e.g., "Request" and "Session") without help from the ASP code, binary file manipulation, processing with a finite-state-machine model, MTX (Transaction Server) components, and more.

Please comment on this code and vote for my hard work if you like this code.

--------------------------------------------------

Now there's a commercial version of this product available. It's been rebuilt from the ground up, correcting all the issues you've reported here and including new features. And it comes complete with extensive documentation and good service.

Check it out!

Original Author: James Vincent Carnicelli

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 139 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD124961292000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 23,807 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.