Note: You must have SAFileUp from SoftArtisans installed on your server for this to work. This is not a free component.
input form:
<form name="Upload" enctype="multipart/form-data" action="upload.asp" method="post">
<table align=center width=600>
<tr><td>File:</td><td><input type="file" name="file_name" size="30"></td></tr>
<tr><td><input type="submit" name="submit" value="Submit">&</td></tr>
</table>
</form>
portion of upload.asp:
Dim oUpload
Dim sMaxFileSize
Dim sFileName
' Maximum file size allowed - zero defaults to no limit, otherwise specify in bytes
CONST UPL_MAX_FILE_SIZE = 1000000
Set oUpload = Server.CreateObject("SoftArtisans.FileUp"

oUpload.MaxBytes = UPL_MAX_FILE_SIZE
' check for file selected for upload
If Not oUpload.IsEmpty Then
'check for file exceeding max allowable size
If oUpload.TotalBytes = oUpload.MaxBytes Then
'file exceeds max allowed file size
sError = "File size exceeds maximum allowable file size of " & oUpload.MaxBytes
Else
'file size okay, continue
sFileName = Mid(oUpload.UserFilename, InstrRev(oUpload.UserFilename, "\"

+ 1)
oUpload.SaveAs fullpath & sFileName 'where fullpath = path to server directory where upload files stored
End If
Else
'return error string for no file selected
sError = "You must select a File."
End If
If sError = "" Then
Set oUpload = Nothing
Else
Response.Write sError
End If