problem description
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)
main.js
require.config ({
baseUrl:STATIC_CTX +"/static/scripts/",
paths : {
"plupload":"plugins/plupload-2.3.6/js/plupload.full.min",
"plupload_queue":"plugins/plupload-2.3.6/js/jquery.plupload.queue/jquery.plupload.queue",
},
//AMD
shim: {
"plupload" : {
exports : "plupload"
},
"plupload_queue" : {
deps: ["jquery","plupload"],
exports : "plupload_queue"
}
}
});
initialize plug-ins
define (["jquery"," plupload","plupload_queue"], function ($, plupload) {
$("-sharpuploader").pluploadQueue({
browse_button:"upload-demo",
runtimes: "html5,flash,silverlight,html4,gears,browserplus",
url:STATIC_CTX + "upload.php",//
max_file_size: "1mb",
//multiple_queues: true,
//multi_selection:false,
filters: [{
title: "xlsx",
extensions: "xlsx"
}],
flash_swf_url: "../plugins/plupload-2.3.6/js/Moxie.swf",
silverlight_xap_url: "../plugins/plupload-2.3.6/js/Moxie.xap"
});
//var uploader = $("-sharpuploader").pluploadQueue();
});
what result do you expect? What is the error message actually seen?