Reputation: 249
does anyone tried JUpload java applet with codeigniter?
this is my views
<h1 align="center">JUpload PHP Sample Page</h1>
<div align="center">
<APPLET
CODE="wjhk.jupload2.JUploadApplet"
NAME="JUpload"
ARCHIVE="../../../../jar/wjhk.jupload.jar"
WIDTH="640"
HEIGHT="300"
MAYSCRIPT="true"
ALT="The java pugin must be installed.">
<param name="postURL" value="ftp://username:password@host:21/testupload" />
<param name="ftpCreateDirectoryStructure" value="true" />
<param name="showLogWindow" value="onError">
<param name="afterUploadURL" value="javascript:alert('Upload done');">
<param name="debugLevel" value="99">
<param name="showStatusBar" value="True">
<param name="maxFileSize" value="25000000">
<param name="maxChunkSize" value="25000000">
<param name="httpUploadParameterType" value="iteration">
<param name="nbFilesPerRequest" value="100">
<param name="stringUploadSuccess" value="SUCCESS">
<param name="stringUploadWarning" value="WARNING">
<param name="stringUploadError" value="ERROR">
Java 1.5 or higher plugin required.
</APPLET>
</div>
but I have no luck to post my ftp, the error says:
java.lang.SecurityException: java.lang.SecurityException in JUploadPanelImpl.doStartUpload()
before I try with codeigniter, I try with pure PHP and it worked. Please help me how to combine this JUpload with codeigniter
Thank you
Upvotes: 0
Views: 280
Reputation: 1269
First of all, check for bad credentials (username,password).
If that's not the cause then my guess would be that your server doesn't allow remote access to ftp. Configure your server for proper access.
Upvotes: 1