私のウェブサイトにValums Ajax Uploaderを使用しています。すべては私のローカルコンピュータ上で正常に動作しているが、私は私のウェブサイトのメインサーバー上の同じアップローダーをしようとすると、その後Firbugはこのエラーを示しています。8.37s
valums Ajaxファイルアップローダー+ 406受け入れられないエラーFirbugで
POST http://www.myexampledomain.com/upload.php?qqfile=201004151821387.1.flv 406受け入れられない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とであります何の1204行ないに近いファイルのコードです:
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
私はすでにGoogleで検索しました。このウェブサイトが、役に立つ何をので、どのように私はこの問題を解決することができます教えてください発見されましたか?この問題に関する
私の他の質問 - 406 error on firebug only
upload.phpも適切なフォルダにあります。私はディレクトリに直接アクセスして確認しました – Peeyush
単純な '.txt'ファイルはエラーなしでアップロードされますか?または、すべてのアップロードが406で失敗していますか? – andyb
.txtも同じ406エラーを返します – Peeyush