无组件上传文件(3)

80酷酷网    80kuku.com

  上传|无组件outputclient.asp

<%
' Author Philippe Collignon
' Email PhCollignonemail.com

Response.Buffer = TRUE
Response.Clear

byteCount = Request.TotalBytes

RequestBin = Request.BinaryRead(byteCount)
Dim UploadRequest
Set UploadRequest = CreateObject("Scripting.Dictionary")

BuildUploadRequest  RequestBin

email = UploadRequest.Item("email").Item("Value")

contentType = UploadRequest.Item("blob").Item("ContentType")
filepathname = UploadRequest.Item("blob").Item("FileName")
filename = Right(filepathname,Len(filepathname)-InstrRev(filepathname,"\"))
value = UploadRequest.Item("blob").Item("Value")
%>

Your email is : <%= email %>

File name of you picture is <%=filepathname%>

File type of your picture is <%=contentType%>


<!--#include file="upload.asp"-->

转自asptoday

分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: