Hi All,
I am also having the same problem with Joomla version 3.3. I have used code
$document = JFactory::getDocument();
$document->addScript("js/plupload.full.min.js");
$document->addScript("/js/mediaUpload.js");
Both the files are getting added to the view.
Content of mediaUpload.js is
jQuery(document).ready(function($){
$("#uploader").plupload({
// General settings
runtimes : 'html5,flash,silverlight,html4',
//url : "/examples/upload",
// Maximum file size
max_file_size : '2mb',
chunk_size: '1mb',
// Resize images on clientside if we can
resize : {
width : 200,
height : 200,
quality : 90,
crop: true // crop to exact dimensions
},
// Specify what files to browse for
filters : [
{title : "Image files", extensions : "jpg,gif,png"},
{title : "Zip files", extensions : "zip,avi"}
],
// Rename files by clicking on their titles
rename: true,
// Sort files
sortable: true,
// Enable ability to drag'n'drop files onto the widget (currently only HTML5 supports that)
dragdrop: true,
// Views to activate
views: {
list: true,
thumbs: true, // Show thumbs
active: 'thumbs'
},
// Flash settings
flash_swf_url : 'components/com_mediamanager/assets/js/setting/Moxie.swf',
// Silverlight settings
silverlight_xap_url : 'components/com_mediamanager/assets/js/setting/Moxie.xap'
});
});
Which I copied on one of your examples.
I am getting following error:
$(...).plupload is not a function
silverlight_xap_url : 'components/com_mediamanager/assets/js/setting/Moxie.xap'
Could you please help me with it ?
Thanks,
Ankit