⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 installation.html

📁 both http and ftp file upload
💻 HTML
📖 第 1 页 / 共 2 页
字号:
                            </b>You need to setup all parameters twice for cross-browser 
                            support. For instance, for &quot;url&quot; parameter 
                            you have to setup : <br>
                            ...<br>
                            url = &quot;http://yourserver.com/upload.jsp&quot;<br>
                            ...<br>
                            &lt;PARAM name=&quot;url&quot; value=&quot;http://yourserver.com/upload.jsp&quot;&gt;<br>
                            ... <br>
                            jClientUpload applet works under Internet Explorer, 
                            Safari, Firefox, Netscape, Opera, ... see <a href="software.html">software</a> 
                            section.</font></li>
                          <li><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>I 
                            get &quot;Connection refused&quot; error message ?<br>
                            </b>It means that &quot;url&quot; parameter of jClientUpload 
                            is not setup. For HTTP upload, it must be the URL 
                            of the server-side script that will handle the upload 
                            (i.e. parse multipart request), for instance http://mycompany.com/upload.php. 
                            This error could also mean that your FTP (or HTTP) 
                            server is not up.</font></li>
                          <li><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>I 
                            get &quot;server error 404&quot; error message ?<br>
                            </b>Same as question above. Your &quot;url&quot; parameter 
                            is wrong. </font></li>
                          <li><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>Applet fails to load, I get ClassFormatError: Incompatible magic value ?<br>
                          </b>Double check that installed JAR files are not corrupted. If you've transfered them on a web server through FTP then make sure that transfer has been done in BINARY mode.</font></li>
                          <li><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>Why 
                            do I need a server-side script too ?<br>
                            </b>jClientUpload is just a client-side component 
                            that could upload files or folders to a server. You 
                            need a server-side script - for HTTP only - to store 
                            uploaded files. For FTP, you just need a FTP server.</font></li>
                          <li><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>For 
                            HTTP, can I use PHP, ASP, ColdFusion or PERL as server-side 
                            script ?<br>
                            </b>Yes, jClientUpload uploads files through standard 
                            HTTP multipart request. Your server-side script could 
                            be written in PHP, JSP, ASP, ASP.NET, CGI/Perl, CGI/C++, 
                            ColdFusion ...</font></li>
                          <li><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>Why 
                            do you recommend UploadBean as server-side script 
                            ?<br>
                            </b>We recommend <a href="http://www.javazoom.net/jzservlets/uploadbean/uploadbean.html" target="_blank">UploadBean</a> 
                            and LargeUpload.jsp script because it includes advanced 
                            features (very large upload with low memory, folders 
                            structure recomposition, resume and overwrite support ...) you might have to develop 
                            in your own script. However, UploadBean needs Servlet/JSP 
                            support on server-side. Notice that you will find 
                            others upload script samples (such as PHP) in <a href="http://www.javazoom.net/applets/jclientupload/tools.html" target="_blank">add-ons</a> 
                            section.</font></li>
                          <li><font color="#CC0000" face="Verdana, Arial, Helvetica, sans-serif"><b><a name="recompose"></a></b></font><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>How to re-create folders structure on server-side when uploading a folder with multiples files and subfolders ?</b></font><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><br>
First, you have to select the recursive depth through &quot;folderdepth&quot; parameter of jClientUpload. Second, you need to enable &quot;relativefilename&quot; extra parameter on jClientUpload through paramX=relativefilename and valueX=true (with X in [1-16]). For instance :<br>
&nbsp;&nbsp;&nbsp;folderdepth=&quot;5&quot;<br>
&nbsp;&nbsp;&nbsp;param1=&quot;relativefilename&quot;<br>
&nbsp;&nbsp;&nbsp;value1=&quot;true&quot;<br>
Finally - for HTTP only - you need a server-side script that will handle &quot;relativefilename&quot; parameter to create folders and subfolders before storing uploaded files. <br>
                            <span class="style3">(LargeUpload.jsp server-side script included in UploadBean provides this feature).</span></font><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><br>
                              </font> 
                            <hr noshade size="2">
                            <font size="-1" face="Verdana, Arial, Helvetica, sans-serif"> 
                          </font></li>
                          <li><font color="#CC0000" face="Verdana, Arial, Helvetica, sans-serif"><b><a name="ftp"></a></b></font><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>How 
                            to select an initial directory on FTP server before 
                            uploading files through FTP ?</b></font><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><br>
                            Use &quot;account&quot; extra parameter through paramX=account 
                            and valueX=dirname (with X in [1-16]). For instance 
                            :<br>
                            &nbsp;&nbsp;&nbsp;param1=&quot;account&quot;<br>
                            &nbsp;&nbsp;&nbsp;value1=&quot;mydirectory/mysubdirectory&quot;</font></li>
                          <li><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>How 
                            to create an initial directory on FTP server before 
                            uploading files ?</b><br>
                            Set &quot;account&quot; parameter above and set &quot;accountcreation&quot; 
                            extra parameter to &quot;true&quot;. For instance 
                            : <br>
                            &nbsp;&nbsp;&nbsp;param2=&quot;accountcreation&quot;<br>
                            &nbsp;&nbsp;&nbsp;value2=&quot;true&quot;<br>
                            </font> 
                            <hr noshade size="2">
                            <font size="-1" face="Verdana, Arial, Helvetica, sans-serif"> 
                            </font></li>
                          <li><font color="#CC0000" face="Verdana, Arial, Helvetica, sans-serif"><b><a name="after"></a></b></font><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>How 
                            to redirect to an URL after upload completed ?</b></font><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><br>
                            Use &quot;forward&quot; parameter such as forward=http://company.com/another.html 
                            <br>
                            If you need to redirect to a given frame of window 
                            then use &quot;forwardtarget&quot;.</font><font face="Verdana, Arial, Helvetica, sans-serif" size="-1"><br>
                            If you need to append uploaded filenames to redirect 
                            URL then set &quot;forwardparameters&quot; to true.</font></li>
                          <li><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>Is 
                            it possible pass a HTTP POST request after upload completed 
                            ?</b><br>
                            Yes, see &quot;post&quot; and &quot;postparameters&quot;. 
                            It allows jClientUpload to send a HTTP POST request 
                            with uploaded filenames (and path). It could be useful 
                            if you need to send an email, store a status in database, 
                            ... after upload. </font></li>
                          <li><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>What happen to  the response of the HTTP POST ?</b><br>
Reponse of &quot;post&quot; url  is discarded by jClientUpload.</font></li>
                          <li><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>Could both &quot;post&quot; and &quot;forward&quot; parameters work together ?<br>
                          </b>Yes, &quot;forward&quot; will be processed after &quot;post&quot;. It means that HTTP POST request will be sent prior to HTTP GET matching to URL redirection. To be more precise :<br>
                          1 - jClientUpload : Send HTTP POST&nbsp; ----&gt; Server : Process POST request.<br>
                          2 - jClientUpload : Discard response &nbsp;&lt;---- Server : Send response.<br>
                          3 - jClientUpload : Send HTTP GET &nbsp;&nbsp;&nbsp;----&gt; Server : Process GET request.<br>
                          4 - Browser : Display HTML response&nbsp;&lt;---- Server : Send response.</font></li>
                          <li><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>Can I pass additional parameter to &quot;forward&quot; parameter ? </b><br>
                            Yes, try forward=&quot;http://company.com/another.html?custom=something&quot;</font></li>
                          <li><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><b>How &quot;forwardparameters&quot; work if I upload many files ? </b><br>
Depending on browser, URL size is limited (from 256 to 4000 characters) so the generated URL might be too long (http://company.com/another.html?filename1=...) <br>
if you upload more than 100 files. The solution is to use &quot;post&quot; and &quot;postparameters&quot; to get all filenames (because there is no limitation in POST size) and use &quot;forward&quot; parameter only to redirect.</font>                            
                            <hr noshade size="2">
                            <font size="-1" face="Verdana, Arial, Helvetica, sans-serif"> 
                            </font></li>
                          <li><font color="#CC0000" face="Verdana, Arial, Helvetica, sans-serif"><b><a name="i18n"></a></b></font><font face="Verdana, Arial, Helvetica, sans-serif" size="-1"><b>How 
                            to modify jClientUpload resources (messages, menu, 
                            errors ...) ?</b></font><font face="Verdana, Arial, Helvetica, sans-serif" size="-1"><br>
                            Most jClientUpload resources could be modified. A 
                            resource could be an info message, an error message, 
                            a menu item or a color. First, copy and modify <a href="img/i18n.properties">i18n.properties</a> 
                            in the same directory as jClientUpload applet. Second, 
                            setup &quot;resources&quot; parameter such as :<br>
                            &nbsp;&nbsp;&nbsp;&nbsp;resources = &quot;i18n&quot; 
                            <br>
                            Pay attention to setup it to i18n and <u>not</u> i18n.properties. 
                            Finally, edit and modify i18n.properties as you need. 
                            This file is an ASCII file and # means comment.<br>
                            If you need extra characters such as german (

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -