我已經實現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