I am using a slightly modified version of the simple upload example.
When I click on the button to browse the local system I get the following error: (I'm using firebug to track my web application)
uncaught exception: Invalid function name..
I hacked into the swfupload.js file to track the error, and I discovered that the error is triggered inside the selectFile function.. Here's what I found:
SWFUpload.prototype.selectFile = function (id) {
console.info("in select file"); //this properly displays on my console
this.callFlash("SelectFile"); //here is where the code breaks
console.info("file selected"); //this never gets displayed
};
This is how I invoke that call..
<input type="button" value="Upload file (Max 1024 MB)" onclick="swfu.selectFile()" style="font-size: 8pt;" />
Here are my settings, and constructor.
var swfuSettings = {
flash_url : "http://www.swfupload.org/swfupload_f9.swf",
upload_url: "../../cgi-bin/fileUpload.cgi", // Relative to the SWF file
post_params: {"SESSION" : "1234"},
file_size_limit : "0", //no limit
file_types : "*.*", //all types
file_upload_limit : 1,
file_queue_limit : 0,
custom_settings : {
progressTarget : "fsUploadProgress",
cancelButtonId : "btnCancel"
},
debug: false,
//The event handler functions are defined in handlers.js
file_queued_handler : fileQueued,
file_queue_error_handler : fileQueueError,
file_dialog_complete_handler : fileDialogComplete,
upload_start_handler : uploadStart,
upload_progress_handler : uploadProgress,
upload_error_handler : uploadError,
upload_success_handler : uploadSuccess,
upload_complete_handler : uploadComplete,
queue_complete_handler : queueComplete // Queue plugin event
};
swfu = new SWFUpload(swfuSettings);
Thank you in advance for your help.
~G