I am uploading files to the WAS using code based on the example code given in the help file shown below and it works fine. When I click on browse, the Dialog Box allows me to enter "All Files"
How can I restrict the file selection to only one type? ie jpg or pdf

HTML Code:
dim msg as c = "" 
if eval_valid("cmd") 
    file.from_blob(ServerSetting.Document_Root + "\\" + FileToUpload.filename, FileToUpload.data)
    msg = "<a href=\"/" + FileToUpload.filename + "\" target=\"_blank\">" + FileToUpload.filename + "</a> was uploaded<br /><br />" 
end if 
<title>File Upload example</title>
<body bgcolor="#ffffff"> 
<%a5 ? msg %> 
<form action="<%a5 ? request.script_name %>" method="POST" enctype="multipart/form-data"> 
<input type="file" name="FileToUpload" value=""><br /> 
<input type="submit" name="cmd" value="Upload File"> 
All help appreciated, thanks

David Priest