I have an AJAX upload action for my Rails app. Sometimes it comes in as:
我的Rails应用程序有一个AJAX上传操作。有时它出现在:
Started POST "/products/temp_upload" for 63.148.78.244 at Fri Sep 24 21:34:27 +0000 2010
Processing by ProductsController#temp_upload as HTML
And everything runs smoothly.
一切顺利。
Other times it comes in as:
其他时候它出现在:
Started POST "/products/temp_upload" for 63.148.78.244 at Fri Sep 24 21:49:35 +0000 2010
Processing by ProductsController#temp_upload as TEXT/*
And I get a 406.
我得到了406。
The only consistency I see is that it works on Windows and fails on OS X. Does anyone know why this is and how to fix it?
我看到的唯一一致性是它在Windows上工作并在OS X上失败。有谁知道这是为什么以及如何解决它?
Thanks!
谢谢!
1 个解决方案
#1
1
This means the browser making the request will accept all text response formats
这意味着发出请求的浏览器将接受所有文本响应格式
#1
1
This means the browser making the request will accept all text response formats
这意味着发出请求的浏览器将接受所有文本响应格式