<% Response.Buffer=True %>
<html>
<head>
<title>简历上传</title>
<LINK href="style.css" type=text/css rel=stylesheet>
<link href="../images/public.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body topmargin="20">
<!--#include FILE="upload_asjob.asp"--> 
<%
set upload=new upload_5xsoft
set file=upload.file("file1")
if file.fileSize>0 then
    '自动生成文件名
    filename=date()
    filename=filename&time()
    filename=replace(filename,"-","")
    filename=replace(filename,":","")
    filename=replace(filename," ","")
    filename=filename+"."
    filenameend=file.filename
    filenameend=split(filenameend,".")
    if filenameend(1)="txt" or filenameend(1)="doc" then
    filename=filename&filenameend(1)
    file.saveAs Server.mappath("../upimages/lietou/"&filename)
%>
<%
	Response.Write("上传成功，请继续填写您的推荐信息")
	session("upfile")=""
	session("upfile")=""&filename
%>
<%
    else
    response.write "文件格式不对"
    response.write "<a href=uploadfile.asp>返回"
    end if
    set file=nothing
	else
    response.write "文件内容不能为空"
    response.write "<a href=uploadfile.asp>返回"
	end if
	set upload=nothing
	response.write "<br>"
%>