我正在使用Valums Ajax上传器.所有在Mozilla中运行良好的代码:
视图:
var button = $('#fileUpload')[0];
var uploader = new qq.FileUploader({
    element: button,
    allowedExtensions: ['jpg', 'jpeg', 'png', 'gif'], 
    sizeLimit: 2147483647, // max size
    action: '/Admin/Home/Upload',
    multiple: false
});
控制器:
public ActionResult Upload(string qqfile)
{
    var stream = Request.InputStream;
    var buffer = new byte[stream.Length];
    stream.Read(buffer, 0, buffer.Length);
    var path = Server.MapPath("~/App_Data");
    var file = Path.Combine(path, qqfile);
    File.WriteAllBytes(file, buffer);
    // TODO: Return whatever the upload control expects as response
}
在这篇文章中回答:
但问题是,这在IE中不起作用.我找到了这个,但我无法弄清楚如何实现它:
IE不会在"request.InputStream"中发送流...而是从Request.Files []集合中通过HttpPostedFileBase获取输入流
此外,这里显示了这个人是如何做到的,但我不知道如何改变我的项目: