flex を使用して imageshack に画像をアップロードしようとしていますが、取得し続けます
<links>
<error id="wrong_file_type">Wrong file type detected for file IMG_00000009.jpg:application/octet-stream</error>
</links>
MIME タイプを変更しようとしましたが、何もうまくいかないようです。
私の方法は次のようになります。
protected function onUpload(event:MouseEvent):void
{
trace('uploading')
fileRef.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, completeHandler);
var params:URLVariables = new URLVariables();
params.key = key;
var request:URLRequest = new URLRequest("http://www.imageshack.us/upload_api.php");
request.method = URLRequestMethod.POST;
request.data = params;
fileRef.upload(request, "fileupload");
}
誰か私に手を差し伸べて、私が間違っていることを教えてもらえますか? 私はグーグルとここを見回しましたが、アクションスクリプトで彼の回避策を見つけることができません。
前もって感謝します