ASP Batch upload Two

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.