You can upload a file by creating a html file and an asp file utilizing ASPUpload component from Persist Software. 2 files is needed for following sample: upload.html and upload.asp.
upload.html sample coding - used as a form for user to browse and select for the file to be uploaded from user's local.
Line No |
Explanation |
1 |
Open html tag |
2 |
Open Head tag |
3 |
Specify the title of the website |
4 |
Close head tag |
5 |
Open body tag |
6 |
Create a form for the upload file. When a use press on the button the website will call the test.asp file to execute the server side script |
7 |
This input type is to create a file upload component for the user to browse the file that they would like to upload to their web space. |
8 |
Create the button for this website. After the user has finish browsing the file, they can upload |
9 |
the file by click on this button. This component will call the test.asp file. |
10 |
Close body and html tag |
Sample Coding: