I am having a couple issues with the UI widget.
Here is my set up in the head, all the paths are correct:
<link rel="stylesheet" type="text/css" href="screen.css"/>
<link rel="stylesheet" type="text/css" href="plupload/js/jquery.ui.plupload/css/jquery.ui.plupload.css"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<script type="text/javascript" src="plupload/js/plupload.full.js"> </script>
<script type="text/javascript" src="plupload/js/jquery.ui.plupload/jquery.ui.plupload.js"></script>
This is the only way I can get it to work,
1. I have to also bring in the jQuery UI library as well, not just the plupload version.
2. I can only use the full.js file it wont let me only use the html5.js (I only want the html5 runtime)
3. It will load but the styles are not there, It looks like my uploader is getting generated in table format when it looks like the examples here on the site are just being rendered into divs.
Here is my set up code:
$("#uploader").plupload({
runtimes : 'html5',
url : 'upload.xqy',
max_file_size : '2000mb',
chunk_size : '5mb',
unique_names : false,
resize : {width : 320, height : 240, quality : 90}
});
$('#uploadForm').submit(function(e) {
var uploader = $('#uploader').plupload('getUploader');
if (uploader.files.length > 0) {
uploader.bind('StateChanged', function() {
if (uploader.files.length === (uploader.total.uploaded + uploader.total.failed)) {
$('#uploadForm').submit();
}
});
uploader.start();
} else
alert('You must at least upload one file.');
return false;
});
And my html:
<form id="uploadForm">
<div id="uploader">
You browser doesn't have HTML5 support.
</div>
</form>