set upload=new upload_5xsoft
set file=upload.file("file")
fileext=right(lcase(trim(file.filename)),3)
if file.filesize<=0 then
response.write " Please select a file <a href='upfile1.htm' style='color:red'>backtrack</a>"
response.End()
end if
if fileext<>"jpg" and fileext<>"gif" then
response.write "File type error. Support jpg and gif formats only <a href='upfile.htm' style='color:red'>backtrack</a>"
response.end
end if
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">