keywords: asp upload asp image Batch upload batch upload file asp upload file asp file upload code PHP document bulk upload
Okay, now we're going to look at the upload.asp file. The code for this file is primarily an upload form.
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<meta name= "generator" content= "Microsoft FrontPage 4.0" >
<meta name= "ProgId" content= "FrontPage.Editor.Document" >
<title>input</title>
<body>
<form name= "Form1" method= "Post" action= "up.asp" enctype= "Multipart/form-data" >
Text box: <input type= "text" value= "abc" name= "Text1" >
<p> filename: <input type=file name= "Photo" >
</p>
<p>
<input type=submit name= "Submit" value= "submitted" >
</p>
</form>
</body>
The above is a basic HTML file, let's look at the up.asp file.
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<meta name= "generator" content= "Microsoft FrontPage 4.0" >
<meta name= "ProgId" content= "FrontPage.Editor.Document" >
<title>up</title>
<body>
<!--#include file= "Upload_5xsoft.inc"-->
<%
Set Upload=new Upload_5xsoft
Set File=upload.file ("Photo") ' File1 for form field name
Response.Write "<br> filename:" &file. FileName
Response.Write "<br> File Size:" &file. FileSize
Response.Write "<br> file path:" &file. FilePath
File.saveas Server.MapPath (file. FileName)
Set file=nothing
Response.Write "<br>"
The contents of the Response.Write text box are: "
Response.Write Upload.form ("Text1")
%>
</body>
up.asp file called the upload_5xsof t.inc file and then use new to create upload file class implementation file upload, I am here to speak a single file, multiple files as long as the use of the line.