You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
If Fields("File1").FileName "" Then<br />
Fields("File1").Value.SaveAs Server.MapPath(".") & "\" &<br />
Fields("File1").FileName<br />
Response.Write("Upload: " & Fields("File1").FileName)<br />
End If<br />
End If<br />
%><br />
upload.inc<br />
<br />
Function GetUpload()<br />
Dim Result<br />
Set Result = Nothing<br />
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then<br />
Dim CT,PosB,Boundary,Length,PosE<br />
CT=Request.ServerVariables("HTTP_Content_Type")<br />
If LCase(Left(CT, 19)) = "multipart/form-data" Then<br />
PosB = InStr(LCase(CT), "boundary=")<br />
If PosB > 0 Then Boundary = Mid(CT, PosB + 9)<br />
PosB = InStr(LCase(CT), "boundary=")<br />
If PosB > 0 then<br />
PosB = InStr(Boundary, ",")<br />
If PosB > 0 Then Boundary = Left(Boundary, PosB - 1)<br />
end if<br />
Length = CLng(Request.ServerVariables("HTTP_Content_Length"))<br />
If Length > 0 And Boundary "" Then<br />
Boundary = "--" & Boundary<br />
Dim Head,Binary<br />
Binary = Request.BinaryRead(Length)<br />
Set Result = SeparateFields(Binary, Boundary)