????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.107 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/customerzon/JavaPowUpload_old/ |
Upload File : |
<!-- saved from url=(0014)about:internet -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Zip files before upload example</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<script type="text/javascript" language="javascript">
function toggleBlock(id) {
if (document.getElementById(id).style.display == 'none') {
document.getElementById(id).style.display = 'block';
}
else {
document.getElementById(id).style.display = 'none';
}
}
</script>
Sample: <b>zipbeforeupload.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/>
It is a example of uploading with compression. All files are compressed before upload.
<br/>
Themes support is disabled at this sample to make load process faster. To look at JavaPowUpload user interface with enabled themes, open any other example.
<p>For the example you need to specify script URL that accept the files. Open the example in a text editor and specify the property value "Upload.UploadUrl" of JavaPowUpload applet. The value can be:</p>
<ul>
<li>For ASP: <code>FileProcessingScripts/ASP/ClearASP/uploadfiles.asp</code></li>
<li>For PHP : <code>FileProcessingScripts/PHP/uploadfiles.php</code> <strong>(Default value)</strong></li>
<li>For ASP.NET (C Sharp): <code>FileProcessingScripts/ASP.NET/CSharp/uploadfiles.aspx</code></li>
<li>For ASP.NET (VB.NET): <code>FileProcessingScripts/ASP.NET/VBNET/uploadfiles.aspx</code></li>
<li>For Perl : <code>FileProcessingScripts/PERL/uploadfiles.pl</code></li>
<li>For Cold Fusion : <code>FileProcessingScripts/ColdFusion/uploadfiles.cfm</code></li>
<li>For JSP : <code>FileProcessingScripts/JSP/uploadfiles.jsp</code></li>
</ul>
<span onClick="toggleBlock('parameters'); return false;" class="imglink">Parameters related to the compression feature (click to expand)</span>
<br/>
<div id="parameters" style="display: none;">
<p><code><!--Enable compression before upload feature --><br></code>
<param name="Upload.Compress.Enabled" value="true"><br>
<code><!-- Name of archive --><br></code>
<param name="Upload.Compress.ArchiveFileName" value="#UNIQUEID#"><br>
<code><!-- Format of generated archive file. Valid values: ZIP, JAR, TAR, TAR-GZIP, TAR-BZIP2 --><br></code>
<param name="Upload.Compress.Format" value="ZIP"><br>
<code><!-- Compression level. Valid values: DEFAULT, BEST_SPEED, BEST_COMPRESSION<br>
only for JAR and ZIP --><br></code>
<param name="Upload.Compress.Level=" value="DEFAULT"><br>
<br>
<code><!--If thumbnmails upload enabled, you can configure applet to place all generatred thumbnails at root of archive --><br></code>
<param name="Upload.Compress.PlaceThumbnailsAtRoot" value="false"><br>
<code><!-- Determines how many files should be included in one archive file. Empty value - all files will be placed in one archive.--><br></code>
<param name="Upload.Compress.MaxFilesInArchive" value=""><br>
<code><!-- Which files should be included. --><br></code>
<param name="Upload.Compress.IncludeFileTypes" value=""><br>
<code><!-- Which files should be ignored. For example you can configure to ignore already compressed types. Like mp3, jpeg, etc--><br></code>
<param name="Upload.Compress.IgnoreFileTypes" value=""></p>
<p>
</div>
<br/>
<!--lib/JavaPowUpload.jar - main jar file, should always be included . It is recommened to include at the end of archive attribute
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/commons-compress.jar,
lib/JavaPowUpload.jar"
width="500"
height="350"
name="JavaPowUpload"
id="JavaPowUpload"
mayscript="true"
alt="JavaPowUpload by www.element-it.com"
VIEWASTEXT>
<!-- Java Plug-In Options -->
<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">
<!--Parameters related to compression -->
<!--Enable compression before upload feature -->
<param name="Upload.Compress.Enabled" value="true">
<!-- Name of archive -->
<param name="Upload.Compress.ArchiveFileName" value="#UNIQUEID#">
<!-- Format of generated archive file. Valid values: ZIP, JAR, TAR, TAR-GZIP, TAR-BZIP2 -->
<param name="Upload.Compress.Format" value="ZIP">
<!-- Compression level. Valid values: DEFAULT, BEST_SPEED, BEST_COMPRESSION
only for JAR and ZIP -->
<param name="Upload.Compress.Level=" value="DEFAULT">
<!--If thumbnmails upload enabled, you can configure applet to place all generatred thumbnails at root of archive -->
<param name="Upload.Compress.PlaceThumbnailsAtRoot" value="false">
<!-- Determines how many files should be included in one archive file. Empty value - all files will be placed in one archive.-->
<param name="Upload.Compress.MaxFilesInArchive" value="">
<!-- Which files should be included. -->
<param name="Upload.Compress.IncludeFileTypes" value="">
<!-- Which files should be ignored. For example you can configure to ignore already compressed types. Like mp3, jpeg, etc-->
<param name="Upload.Compress.IgnoreFileTypes" value="">
<!-- Enable JavaScript communication -->
<param name="Common.UseLiveConnect" value="true">
<!--Set url to file processing script -->
<param name="Upload.UploadUrl" value="FileProcessingScripts/PHP/uploadfiles.php">
<!--Url to themepack -->
<!-- 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>
<script type="text/javascript">
function JavaPowUpload_onServerResponse(status, response)
{
var responselable = document.getElementById("serverresponse");
responselable.innerHTML += "<br>Response code " + status + response;
}
</script>
<br/>
<b>You should see server response below when upload complete.</b><br/>
</p>
<div id="serverresponse"> </div>
<br />
The file uploader doesnt 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>
</html>