我已经实现blueimp jquery file uploader
和处理上除IE6的所有浏览器:(运行良好。
它不处理来自uploads_controller#create
方法JSON响应。它提供了JSON文件,响应下载。IE 6 JSON响应在blueimp jQuery的文件上传
请帮我解决这问题..
我已经实现blueimp jquery file uploader
和处理上除IE6的所有浏览器:(运行良好。
它不处理来自uploads_controller#create
方法JSON响应。它提供了JSON文件,响应下载。IE 6 JSON响应在blueimp jQuery的文件上传
请帮我解决这问题..
做它下面的方式热固性酚醛树脂的问题
content_type = request.env['HTTP_ACCEPT'].split(',').include?("application/json") ? "application/json" : "text/html"
respond_to do |format|
format.html
format.json{render :json => [ @attached_file.to_jq_upload ].to_json, :content_type => content_type}
end`
我们应该在我们的索引控制器中修改什么?我在那里有一个问题:/ – CanCeylan
你如何返回你的json?当您将json返回给客户端时,您发送了什么样的Content-Type标头? – daniel0mullins