<%
action=request("action")
if action="add" then%>
<%
'图片保存路径
picpath="../img/"
set upload=new upload_5xsoft
'文本 url content radio filename
proname=upload.form("proname")
Bclass=upload.form("BClassID")
SClass=upload.form("SClassID")
material=upload.form("material")
style=upload.form("style")
casing=upload.form("casing")
root=upload.form("root")
'文件 pic piclink
set pic=upload.file("pic")
set piclink=upload.file("piclink")
if pic.fileSize>0 then
fileName=pic.FileName
filename=now()&InStrRev(fileName,".")
file1pn=picpath & pic.FileName'&now()
pic.saveAs Server.mappath(file1pn)
else
pic.FileName="notfile.jpg"
file1pn=picpath & pic.FileName
end if
if piclink.fileSize>0 then
fileName=piclink.FileName
filename=now()&InStrRev(fileName,".")
file2pn=picpath & piclink.FileName
piclink.saveAs Server.mappath(file2pn)
else
piclink.FileName="notfile.jpg"
file2pn=picpath & piclink.FileName
end if
数据库文件的权限我给读写了的,也就是everyone的权限.是完全控制.