Solution | upload
Upload the form as follows:
Title:Gender:ManFemale belonging to:LiteratureSportsArtOtherWhether to select:Content: Category:Category 1Category 2Category 3Category 4Category 5<textarea name="content1" rows="10" cols="60"></textarea>Select File One:Select File Two:Select File Three:Select File Four:Select File Five:
ASP Source code:
<HTML>
<BODY>
<TITLE> File Upload </TITLE>
<CENTER>
</CENTER>
<% Set Obj = Server.CreateObject ("Yousoft.uploadfile")
Response.Write "Total upload" & obj. Count & "File <br> total data size" & obj. TotalBytes & "Bytes<br> spent a total of time" & (obj. spendtime/1000) & "SEC <br>"
Response.Write Obj.version%>
<HR>
<table width= "75%" border= "1" >
<tr>
<TD width= "20%" > title:</td>
<TD width= "80%" ><%=obj.form ("Title1")%></td>
</tr>
<tr>
<TD width= "20%" > Belong to:</td>
<TD width= "80%" ><%=obj.form ("Sel1")%></td>
</tr>
<tr>
<TD width= "20%" > Sex:</td>
<TD width= "80%" ><%=obj.form ("Sex1")%></td>
</tr>
<tr>
<TD width= "20%" > Classification:</td>
<TD width= "80%" ><%=obj.form ("List1")%></td>
</tr>
<tr>
<TD width= "20%" > Content: </td>
<TD width= "80%" ><%=obj.form ("Content1")%></td>
</tr>
<tr>
<TD width= "20%" > Selected:</td>
<TD width= "80%" ><%=obj.form ("Select1")%></td>
</tr>
<tr>
<TD width= "20%" > Submit button:</td>
<TD width= "80%" ><%=obj.form ("Save")%></td>
</tr>
</table>
<p> </p>
<p> upload files as follows:<br>
</p>
<table border= "1" >
<tr>
<TD nowrap> name </td>
<TD nowrap> file name (including extension) </td>
<TD nowrap> file name (not including extension) </td>
<TD nowrap> File Size (B) </td>
<TD nowrap> Original file path </td>
<TD nowrap> file name extension </td>
<TD nowrap> Original file name (including path) </td>
</tr>
<%for i=0 to Obj.count-1%>
<% userfile = Obj.userfile (i)%>
<tr>
<td>
<% =userfile%>
</td>
<td>
<% =obj.filename (userfile)%>
</td>
<td>
<% =obj.filenamex (userfile)%>
</td>
<td>
<% =obj.filesize (userfile)%>
</td>
<td>
<% =obj.filepath (userfile)%>
</td>
<td>
<% =obj.fileext (userfile)%>
</td>
<td>
<% =obj.oldfilename (userfile)%>
</td>
</tr>
<% ' Obj.savetoftp "192.168.7.168", 21,5000, "Xu", "Xu", 0