내 웹 사이트에 Valums Ajax Uploader을 사용하고 있습니다. 모든 것은 내 로컬 컴퓨터에서 잘 작동하지만 난 내 웹 사이트 메인 서버에서 동일한 업 로더를하려고 할 때 다음 Firbug이 오류 보여줍니다valums Ajax 파일 업 로더 + 406 허용 불가 오류 Firbug에서
POST http://www.myexampledomain.com/upload.php?qqfile=201004151821387.1.flv (406) 불가 8.37s
fileuploader.js (라인 1204)
응답 바디
<title>406 Not Acceptable</title>
<p>An appropriate representation of the requested resource /upload.php could not be found on this server.</p>
<p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p>
모든 요청 & 응답 헤더는 here 및에
params = params || {};
params['qqfile'] = name;
var queryString = qq.obj2url(params, this._options.action);
xhr.open("POST", queryString, true);
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xhr.setRequestHeader("X-File-Name", encodeURIComponent(name));
xhr.setRequestHeader("Content-Type", "application/octet-stream");
xhr.send(file); //line 1204
는 이미 구글에서 검색 한이 웹 사이트하지만 유용 아무것도 내가이 문제를 해결할 수있는 방법을 그렇게 말씀 해주십시오 발견 :파일의 코드는 근처에 1204이 줄 없습니다?
이 문제에 대한 내 다른 질문 - 406 error on firebug only
upload.php도 적절한 폴더에 있습니다. 나는 그것을 direcly에 액세스하여 검사했습니다. – Peeyush
간단한 '.txt' 파일을 오류없이 업로드합니까? 또는 406 업로드가 모두 실패 했습니까? – andyb
.txt도 같은 406 오류가 발생합니다. – Peeyush