1.谁能提供一个最简单易懂的上上传ASP上传的代码?
谁能提供一个最简单易懂的ASP上传的代码?
以下是一个无组建上传,代码没有测试,传图同城网站源码大全调试一下就应该可以使用。片源滚动主图指标源码
uploadfile.asp的图片杭州溯源码燕窝正品内容
=====================================================
<!-- #include file="upload.inc" -->
<%
dim strFormName, strInputName
dim intFileID
strFormName = request.querystring("formname")
strInputName = request.querystring("inputname")
intFileID = ls.cdata(request.querystring("fileid"), 3)
if request.querystring("up") = "ok" then
if request.querystring("uploadcode") = Session("UploadCode") then
Session("UploadCode") = ""
Server.ScriptTimeOut =
Dim Upload
Dim FileToBinary
Dim strMsg, strImageTypes
strMsg = "上传成功!"
strImageTypes = "jpg,源码源码包服务管理方案gif,bmp,jpeg,png,tif,iff"
Set Upload = New UpFile_Class
Upload.InceptFileType = ""
Upload.MaxSize =
*Upload.GetDate() '取得上传数据
FileToBinary = Null
If Upload.Err > 0 then
Select Case Upload.Err
Case 1 : strMsg = "请先选择你要上传的文件!"
Case 2 : strMsg = "文件大小超过了限制 KB!"
Case 3 : strMsg = "文件类型不正确!"
End Select
ls.Redirect strMsg, "close"
Else
Dim FormName, File, FileExt, FileName, FileType
FormName = "up_file"
Set File = Upload.File(FormName)
FileExt = FixName(File.FileExt)
FileName = FormatName(FileExt)
FileType = CheckFiletype(FileExt)
If File.FileSize > 0 and Instr("," & strImageTypes & ",", "," & FileExt & ",") > 0 Then
File.SaveToFile Server.Mappath(BasePath & UploadFileFolder & FileName)
Else
response.write "没有文件上传,或不是上上传工单报修系统源码以下“jpg,gif,bmp,jpeg,png,tif,iff”类型的一种。" End If
End If
Set Upload = Nothing
else
response.write "请不要重复提交!传图",片源 "close"
end if
else
Dim PostRanNum
Randomize
PostRanNum = Int(*rnd)+
Session("UploadCode") = Cstr(PostRanNum)
%>
<head>
<meta .com
'电子邮件:yjlrb@cn.com
'版权声明:版权所有,源代码公开,各种用途均可免费使用,但是修改后必须把修改后的文件
'发送一份给作者.
'
2024-11-20 22:122778人浏览
2024-11-20 21:361621人浏览
2024-11-20 21:362072人浏览
2024-11-20 21:202034人浏览
2024-11-20 20:14761人浏览
2024-11-20 20:14833人浏览
1.Windowså¦ä½å®è£ Java2.java编程软件eclipse怎么安装(java软件eclipse安装教程)3.怎样安装JAVA?Windowså¦ä½å®è£ Java
1.易语言做穿越火线辅助易语言做穿越火线辅助 你好,场面话我不太会说索性也就不说了。直奔主题,如题。易语言做穿越火线辅助。 我不同意那位热心网友的说法,穿越火线会更新这是事实,但是辅助做好了系
1.3d稀疏卷积——spconv源码剖析五)2.[3D游戏开发实践] Cocos Cyberpunk 源码解读-开篇3.[3D游戏开发实践] Cocos Cyberpunk 源码解读-目录结构3d稀疏