UPLOAD.HTM
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<form name="FORM" action="upload.asp" method="post">
<input type="submit" name="submit" value="OK">
<input type=file name="file1" style="width:400" value="">
</form>
</body>
</html>
UPLOAD.ASP
<%
dim strFileName
Function GetFileName(ByVal strFile)
If strFile <> "" Then
GetFileName = mid(strFile,InStrRev(strFile,"\")+1)
Else
GetFileName = ""
End If
End function
strFileName=request.form("file1")
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Type = 1 ' adTypeBinary
objStream.Open
objStream.LoadFromFile strFileName
objStream.SaveToFile Server.MapPath(GetFileName(strFileName)),2
objStream.Close
%>
不知道为什么只要是NTFS文件系统就不能上传图片只能在FAT32下才可以
[此贴子已经被作者于2006-2-7 17:06:05编辑过]