Sample5.asp
Código:
Sample5.htm<HTML>
<BODY BGCOLOR="white">
<H1>aspSmartUpload : Sample 5</H1>
<HR>
<%
' Variables
' *********
Dim mySmartUpload
Dim item
Dim value
Dim file
' Object creation
' ***************
Set mySmartUpload = Server.CreateObject("aspSmartUpload.SmartUpload")
' Upload
' ******
mySmartUpload.Upload
intCount = mySmartUpload.Save("DESTINO")
' FILES Collection
' ****************
Response.Write("<BR><STRONG>Files Collection</STRONG><BR>")
' Informations about files
' ************************
Response.Write("Number of files =" & mySmartUpload.Files.count &"<BR>")
Response.Write("Total bytes of files =" & mySmartUpload.Files.TotalBytes &"<BR>")
' Select each file
' ****************
For each file In mySmartUpload.Files
Response.Write(file.FileName & " (" & file.Size & "bytes)<BR>")
Next
' FORM Collection
' ***************
Response.Write("<BR><STRONG>Form Collection</STRONG><BR>")
' Select each item
' ****************
For each item In mySmartUpload.Form
' Select each value of the current item
' *************************************
For each value In mySmartUpload.Form(item)
Response.Write(item & " = " & value & "<BR>")
Next
Next
%>
</BODY>
</HTML>
Código HTML:
<HTML> <BODY BGCOLOR="white"> <H1>aspSmartUpload : Sample 5</H1> <HR> <form METHOD="POST" ACTION="Sample5.asp" NAME="PW" ENCTYPE="multipart/form-data"> <input TYPE="hidden" name="myHidden" value="hidden">Upload de Imagenes y Videos<br> <table CELLSPACING="0" CELLPADDING="3" BORDER="1" WIDTH="474"> <!-- FILE --> <tr> <td style="width: 200px; height: 30px"><small><font face="Verdana">Seleccione Archivo : </font></small></td> <td style="height: 30px"><small><font face="Verdana"><input TYPE="file" name="FILE1"></font></small></td> </tr> <tr> <td style="width: 200px"><small><font face="Verdana">Seleccione 2 Archivo : </font></small></td> <td><small><font face="Verdana"><input TYPE="file" name="FILE2"></font></small></td> </tr> <!-- TEXT --> <tr> <td style="width: 200px"><div align="left"><p><small><font face="Verdana"> Titulo : </font></small></td> <td width="324"><small><font face="Verdana"><input TYPE="TEXT" name="myText" value=""><br></font></small></td> </tr> <!-- TEXTAREA --> <tr> <td style="width: 200px"><div align="left"><p>Ingrese Texto<small><font face="Verdana"> : </font></small></td> <td width="324"><small><font face="Verdana"><textarea name="myTextArea" rows="4" value=""></textarea><br></font></small></td> </tr> <tr> <td colspan="2" width="474"><div align="center"><center><p><small><font face="Verdana"><input TYPE="Submit"> </font></small></td> </tr> </table> </form> </BODY> </HTML>
Si alguien me podria dar una mano o guiarme en como modificar si tengo al mal, bienvenido sea.

