Uploading Files with ASP


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.

You might also like...


About the author

James Crowley

James Crowley United Kingdom

James first started this website when learning Visual Basic back in 1999 whilst studying his GCSEs. The site grew steadily over the years while being run as a hobby - to a regular monthly audien...

Interested in writing for us? Find out more.


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“We better hurry up and start coding, there are going to be a lot of bugs to fix.”