I have put the swfupload to my site but after choosing the files to upload, the page that handle the uploaded files didn't receive the files. I assuming the swfupload isn't uploading the files to the server ...
this is my simple code in javascript /
var swfu;
window.onload = function() {
var settings =
{
file_size_limit: "1000", // 200 kb
file_types: "*.jpg;*.gif;*.png",
file_types_description: "Image Files",
file_upload_limit: "10",
file_queue_limit: "10",
upload_url: "http://localhost:4158/Membership/ExportFromFlash.aspx?action=gadget",
flash_url: "/Html_Data/Flash/swfupload.swf",
button_width: "100",
button_height: "20",
button_placeholder_id: "swfuploadContainer",
button_text: '<span>Upload your gadgets</span>',
button_text_style: ".theFont { font-size: 8; }",
button_text_left_padding: 12,
upload_error_handler: uploadError,
upload_success_handler : uploadSuccess
}
swfu = new SWFUpload(settings);
};
function uploadError(file, errorCode, message) {
try {
alert(message);
} catch (ex) {
alert("ASDF");
this.debug(ex);
}
}
function uploadSuccess(file, serverData) {
try {
alert(serverData);
//window.navigator("/Membership/GadgetDetails.aspx");
} catch (ex) {
alert("A33");
this.debug(ex);
}
}
I used the visual studio .net debugging the page but it didn't reach....