swfupload를 내 사이트에 넣었지만 업로드 할 파일을 선택한 후에 업로드 된 파일을 처리하는 페이지가 파일을받지 못했습니다. 나는 이것이 자바 스크립트 내 간단한 코드/SWFUpload가 asp.net에 파일을 업로드하지 못합니다.
var에 swfu입니다 ... swfupload가 서버에 파일을 업로드되지
가정;
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);
}
}
나는 페이지를 디버깅 비주얼 스튜디오 .NET을 사용하지만
로컬 컴퓨터에서 작업하고 있습니다. –