⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formitems_upload.asp

📁 aspupload
💻 ASP
字号:
<!-- AspUpload Code samples: formitems_upload.asp -->
<!-- Invoked by formitems.asp -->
<!-- Copyright (c) 2001 Persits Software, Inc. -->
<!-- http://www.persits.com -->

<HTML>
<BODY>

<%
	Set Upload = Server.CreateObject("Persits.Upload")

	' we use memory uploads, so we must limit file size
	Upload.SetMaxSize 100000, True

	' Save to memory. Path parameter is omitted
	Upload.Save

	' access subdirectory specified by user
	subdir = Upload.Form("subdir")

	' Build path string
	Path = "c:\upload\" & subdir

	' Create path, ignore "already exists" error
	Upload.CreateDirectory Path, True

	' Save files to it. Our form has only one file item
	' but this code is generic.
	For Each File in Upload.Files
		File.SaveAs Path & "\" & File.FileName

		Response.Write "File saved as " & File.Path & "<BR>"
	Next
%>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -