Uploading Files to the Server Hard Disk using plain ASPby Faisal Khan.
Overview
This article is number three in a series of articles I wrote about uploading and
displaying binary data with ASP. The first article was about Uploading
binary data to the database, second was on Displaying
binary data from the database and the third one ( this one ) is going to be on 'Uploading
files to the server hard disk using pure ASP'.
File Uploading with ASP.NET
If you have the privilege of using ASP.NET then you should read these comprehensive tutorials regarding file uploading using built-in ASP.NET server controls:
- File uploading
to server hard disk.
- File uploading to Microsoft Access database.
- Uploading images, determining size, width & height and resizing image files.
I'll assume that you have read the previous articles and thus will only concentrate
on the parts which are new in this article. I get enormous amounts of emails by people
asking me how to upload files with ASP. This article is going to be an answer to all
those questions.
In all the previous articles we have been using Loader.asp to handle
binary data. Same is going to be the case in this article. We'll though modify
Loader.asp a bit to allow us to save uploaded binary data to the server hard disk.
Loader.asp
Open your note pad ( or any other ASP editor you use ) and create a new file.
Save it as 'Loader.asp'. Now copy the text listed below and paste it
in to the newly created 'Loader.asp' page and hit the save button : Overview
This article is number three in a series of articles I wrote about uploading and
displaying binary data with ASP. The first article was about Uploading
binary data to the database, second was on Displaying
binary data from the database and the third one ( this one ) is going to be on 'Uploading
files to the server hard disk using pure ASP'.
File Uploading with ASP.NET
If you have the privilege of using ASP.NET then you should read these comprehensive tutorials regarding file uploading using built-in ASP.NET server controls:
- File uploading
to server hard disk.
- File uploading to Microsoft Access database.
- Uploading images, determining size, width & height and resizing image files.
I'll assume that you have read the previous articles and thus will only concentrate
on the parts which are new in this article. I get enormous amounts of emails by people
asking me how to upload files with ASP. This article is going to be an answer to all
those questions.
In all the previous articles we have been using Loader.asp to handle
binary data. Same is going to be the case in this article. We'll though modify
Loader.asp a bit to allow us to save uploaded binary data to the server hard disk.
Loader.asp
Open your note pad ( or any other ASP editor you use ) and create a new file.
Save it as 'Loader.asp'. Now copy the text listed below and paste it
in to the newly created 'Loader.asp' page and hit the save button :
|