File - The <input> Tag

Files may be uploaded using the <input> tag by setting the type attribute to "file." A "Browse" button is provided automatically. In order for this to work, the enctype attribute for the form must be set to "multipart/form-data".

<form name="Attachments" enctype="multipart/form-data" method="post" action="UploadFile.asp">
<input type="file" name="userFile" size="20">
</form>