...
Code Block | ||||
---|---|---|---|---|
| ||||
jQuery(document).ready(function () { // Load the Uploader's template via AJAX and inject it into this page. var templateURLSelector = "infusion/src/webapp/components/uploader/html/Uploader.html .fl-uploader"; $("#uploader-contents").load(templateURLSelector, null, function () { // Initialize the Uploader var myUpload = fluid.uploader(".flc-uploader", { components: { strategy: { options: { flashMovieSettings: { flashURL: "infusion/src/webapp/lib/swfupload/flash/swfupload.swf", flashButtonImageURL: "infusion/src/webapp/components/uploader/images/browse.png" } } } }, queueSettings: { // Set the uploadURL to the URL for posting files to your server. uploadURL: "http://myserver.com/uploadFiles" } }); }); }); |
This function passes three two required parameters to the Uploader constructor:
...