|
Your upload.asp page should contain code to decode the uploaded
file and save it out in a web friendly format. First we find the
physical path to the place we are going to save the file.
[Visual Basic]
Dim path As String
path = Server.MapPath("../images/picture.jpg")
[C#]
string path = Server.MapPath("../images/picture.jpg");
Next we get the uploaded information out of the request. Here we
use the standard .NET upload classes but for more control over the
upload process you can use ABCUpload.
[Visual Basic]
Dim field As HttpPostedFile
field = Request.Files("filefield")
[C#]
HttpPostedFile field = Request.Files("filefield");
|