It looks like you're new here. If you want to get involved, click one of these buttons!
<script type=\"text/javascript\" language=\"javascript\" src=\"<?php print get_stylesheet_directory_uri(); ?>/js/jquery.uploadify.js\"></script>
<div class=\"demo\">
<p><strong>Single File Upload</strong></p>
<input type=\"file\" id=\"fileInput1\" name=\"fileInput1\" />
<br />
<a href=\"javascript:jQuery('#fileInput1').fileUploadStart();\">Upload Files</a>
</div>
<script type=\"text/javascript\">
var curr_uri = \"<?php print get_stylesheet_directory_uri(); ?>\";
jQuery(document).ready(function() {
jQuery('#fileInput1').fileUpload({
'uploader': curr_uri + '/uploader.swf',
'script': curr_uri + '/upload.php',
'checkScript': curr_uri + '/check.php',
'folder': curr_uri + '/images/uploads',
'buttonText': 'MYBROWSE',
'onInit': function() {
alert(\"Init!\");
},
'onSelect': function() {
alert(\"Select!\");
},
'onCheck': function() {
alert(\"Check!\");
},
'onError': function () {
alert(\"Error!\");
},
'onComplete': function(event, queueID, fileObj, response, data) {
alert(\"completed uploading file: \" + fileObj['name']);
}
});
});
</script>