나는 http://localhost/project/etcUploadify은 로컬 호스트의 외부 이벤트를 해고하지
문제를 통해 액세스하는 내 로컬 컴퓨터에서 실행할 때 아름답게 작동, 사용자가 파일을 업로드 할 수 있습니다 꽤 똑바로 앞으로 uploadified 페이지를 내가하려고하면되고있다 내 컴퓨터 이름 (http://mycomp1/project/etc)을 통해 그것을 얻으 려해도 페이지가/etc를로드하고 모든 것이 제대로 작동하지만 아무 것도 전송되지 않으면 방화 광구가 열려 정상적으로 표시됩니다. 모든 AJAX 요청은 통과하지만 아무 것도 얻지 못한다.
아이디어가 있으십니까?
는내 uploadify 코드 :
$('#uploadify').uploadify({
'scriptAccess': 'always',
'uploader': '../../scripts/uploadify.swf', //flash source for handling the uploads and size checking
'cancelImg': '../../content/images/cancel.png', //cool cancel button
'script': '../../' + $('#Controller').val() + '/FileSave/' + $('#OrderID').val(), //sends files to the controller with apropriate data
'folder': 'Uploads', //sets the upload directory, not sure if this matters as the files are sent to the controller
'multi': true, //allows multiple uploads
'auto': false, //uploads dont start automatically
'queueSizeLimit': 5, //5 files can be in the queue at a time
'queueID': 'fileQueue', //div to contain the queue of files
'displayData': 'speed', //shows the transfer speed
'fileExt': '*.pdf', //limits to pdfs
'fileDesc': 'PDF', //shows a description in the browse window of filetypes
'sizeLimit': '5242880', //5mb limit
'scriptData': { 'CategoryID': $('#fileCategory').val() }, //passes the selected value of the category drop down
onComplete: function(event, queueID, fileObj, response, data) {//once a transfer completes fires an ajax function to pull in the files for the order
if (response == "Upload Successful") {//if response is successfull, updates div displaying files with new files
GetFiles($('#Controller').val());
}
}
});
UPDATE : scriptAccess 뭔가 설정하지만 여전히 어떤 백엔드 스크립트를 발사하지 않는 uploadify 웹 사이트에 말했듯이, 항상로 설정하는 경우에도 또는 내 onComplete를 것으로 보인다 함수
UPDATE2 : 추가 검사시 로컬 호스트가 아닌 설정에서 올바른 스크립트 경로가 아닌 것처럼 보이지만 지금은 올바른 위치의 스크립트로 응답이 내 onComplete 함수에서 가져 오는 HTML 출력과 같습니다. 내 로그인 페이지. 어떤 아이디어?
갱신 3 : 로컬 호스트에서 내가 업로드 대신 성공적으로 내 로그인 페이지의 응답을 가져 오거나을 내 백엔드 코드
FireBug 대신 Fiddler를 사용해보십시오. HTTP 세부 정보가 더 많이 표시됩니다. 저는 자바 스크립트 전문가는 아니지만'onComplete '와 같이 따옴표로 묶어야합니다 : func ...'? –
아냐, 따옴표없이 잘 작동하고, 감사합니다 – Jimmy
이것은 잘못된 도구가 무엇인지 알아볼 수있는 편리한 도구이지만 반환 URL이있는 로그인 페이지로 내 응답 URL을 표시합니다. 스크립트가 파일을 게시해야합니다. – Jimmy