Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Directory Listing for JUpload

Status
Not open for further replies.

Reynet01

Technical User
Apr 27, 2004
59
US
I am using jupload and it has static setting for the upload directory I would like to present the user with a directory listing to choose the upload directory from a drop down menu. how would I code this with the following code

UPLOAD FORM PAGE:
<HTML>
<HEAD>
<TITLE>JUpload 1.0: Simple.asp</TITLE>
</HEAD>
<BODY>

<!-- Specify location of the applet via both ARCHIVE attribute of <APPLET>
(for Netscape) and <PARAM NAME="CABBASE"> for IE -->

<APPLET CODE="persits.transfer.gui.UploadUI.class" ARCHIVE="JUpload.jar" WIDTH="450" HEIGHT="200" NAME="JUpload" MAYSCRIPT>
<PARAM NAME="cabbase" VALUE="JUpload.cab">

<!-- use HTTP connection, not sockets -->
<PARAM NAME="UseSockets" VALUE="False">

<!-- Specify URL of upload script based on the AspUpload component-->
<!-- If necessary, specify a full URL such as "<PARAM NAME="UploadURL" VALUE="simple_upload1.asp">
</APPLET>



<!-- Specify location of the applet via both ARCHIVE attribute of <APPLET>
(for Netscape) and <PARAM NAME="CABBASE"> for IE -->

<APPLET CODE="persits.transfer.gui.UploadUI.class" ARCHIVE="JUpload.jar" WIDTH="450" HEIGHT="200" NAME="JUpload" MAYSCRIPT>
<PARAM NAME="cabbase" VALUE="JUpload.cab">

<!-- use HTTP connection, not sockets -->
<PARAM NAME="UseSockets" VALUE="False">

<!-- Specify URL of upload script based on the AspUpload component-->
<!-- If necessary, specify a full URL such as "<PARAM NAME="UploadURL" VALUE="simple_upload.asp">
</APPLET>
</BODY>
</HTML>




UPLOAD Activation PAGE:
<HTML>
<HEAD>
<TITLE>JUpload 1.0: Simple_upload.asp</TITLE>
</HEAD>
<BODY>

<%
' Use AspUpload to capture uploaded files.
' An eval version of AspUpload can be downloaded from
Set Upload = Server.CreateObject("Persits.Upload")
Count = Upload.Save("c:\upload")

Response.Write "Success! " & count & " file(s) uploaded.<P>"

For Each File in Upload.Files
Response.Write File.Path & " (" & File.Size & " bytes)<BR>"
Next
%>
<P>
<A HREF="simple.asp">Upload more files</A>
</BODY>
</HTML>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top