http://www.jupload.com - Free - Excellent - Java Applet - I cannot get any CF
example for this to work. I have implemented it on a development server, it
sees my files, and even gives me a progress bar as if its uploading -
I cannot see any form variables or anything...No uploaded files.. It doesnt
even submit the form...is this required?
PLEASE HELP! Thank you in advance
My code:
<html>
<head>
<title>JUpload - multiple file upload with resuming</title>
</head>
<body>
<h2>JUpload Simple Demo</h2>
<cfif isdefined("form.FieldNames")>
<cfloop index="idx" list="#Form.FieldNames#">
<cfif find("UPLOADEDFILES",idx,0) GT 0 and find("ABSOLUTEPATH\",idx,0) LTE 0>
<cffile action="UPLOAD" filefield="#idx#"
destination="E:\websites\projects\uploadviajava\" nameconflict="MAKEUNIQUE">
</cfif>
</cfloop>
</cfif>
<hr>
<p align="center">
<br>
<cfoutput>
<!---
<applet
code="JUploadPlugin_ImagePreview"
archive="jars/jupload.jar"
width="300"
height="300"
mayscript
name="JUploadPlugin_ImagePreview"
alt="JUpload Plugin: Image preview">
</applet>--->
<form name="JUpload">
</form>
<applet
code="JUpload.startup"
archive="jars/jupload.jar"
width="500"
height="300"
mayscript="mayscript"
name="JUpload"
alt="Upload Application">
<!-- Java Plug-In Options -->
<param name="progressbar" value="true">
<param name="tagName" value="upfiles">
<param name="RealTimeResponse" value="true">
<param name="actionURL" value="upload.cfm">
<param name="imageFileFilter" value="true">
<param name="completeURL" value="">
<param name="usePUTMethod" value="false">
<param name="debug" value="true">
<!---<param name="boxmessage" value="Loading Applet ...">
Target links
<param name="image" value="">
<param name="tagName" value="FieldNames">
<param name="checkResponse" value="true">
<param name="showSuccessDialog" value="true">
<param name="imageFileFilter" value="true">
<param name="hideShowAll" value="true">
<param name="RealTimeResponse" value="true">
<param name="successDialogMessage" value="Your files have been uploaded.">--->
<!--- <!PARAM NAME="maxTotalRequestSize" VALUE="4">--->
<!--- IF YOU HAVE PROBLEMS, CHANGE THIS TO TRUE BEFORE CONTACTING SUPPORT
<param name="debug" value="true">--->
<!param name="dimensionFilter" value="((width>=640 and width<=1024) and
(height>=480 and height <= 768)) or ((width>=480 and width<=768) and
(height>=640 and height <= 1024)) or (width=-1 and height=-1)">
</applet>
<applet
code="JUploadPlugin_ImagePreview"
archive="jars/jupload.jar"
width="200"
height="200"
mayscript
name="JUploadPlugin_ImagePreview"
alt="JUpload Plugin: Image preview">
</applet>
</cfoutput>
</p>
<hr>
<p>
<hr>
</body>
</html>
<param name="fixJakartaBug" VALUE="false">
Is there any way I can somehow communicate to the applet as an object or
something? If so maybe there is some kind of array or somethng that it is
passing to the page on the server where I can get the files at the server...
but how can the server be accepting the files without configuration other than
this applet?
Sorry - I got pulled into another project for a few days... I am still struggling with this applicaiton... Is there any way you could post your code?
Thank you very much!
<!--- index.cfm --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<form action="uploadcfm.cfm" method="post">
<applet
code="JUpload.startup"
archive="/jupload/jupload.jar"
width="500"
height="300"
mayscript="mayscript"
name="JUpload">
<param name="progressbar" value="true">
<param name="boxmessage" value="Loading JUpload Applet ...">
<param name="debug" VALUE="true">
<param name="fixJakartaBug" VALUE="false">
<param name="actionURL"
value="http://surin/jupload/examples/coldfusion/uploadcfm.cfm">
<param name="checkResponse" VALUE="false">
</applet>
</form>
</body>
</html>
<!--- uploadcfm.cfm --->
<cfsavecontent variable="x">
<cfdump var="#form#">
</cfsavecontent>
<cffile action="WRITE" file="e:\temp\junk\jupload.htm" output="#x#"
addnewline="Yes" fixnewline="Yes">
<cfoutput>
<cfloop index="idx" list="#Form.FieldNames#">
<cfif findNoCase("UPLOADEDFILES0",idx,0)>
<cffile action="UPLOAD" filefield="#idx#" destination="E:\temp\junk\"
nameconflict="MAKEUNIQUE">
#idx#<br>
</cfif>
</cfloop>
#x#
</cfoutput>
<cfloop index="idx" list="#Form.FieldNames#">
<cfif idx is "UPLOADEDFILES0">
<cffile action="UPLOAD" filefield="#idx#"
destination="D:\home\test\jupload\uploaded\" nameconflict="MAKEUNIQUE">
<cfoutput>
Uploaded - #idx#<br>
</cfoutput>
</cfif>
</cfloop>
<cfoutput>
<cfloop index="idx" list="#Form.FieldNames#">
<cfif findNocase("UPLOADEDFILES",idx,1) AND NOT findNocase("_",idx,1)>
<cffile action="UPLOAD" filefield="#idx#" destination="#destination#"