EDIT: The real question was whether or not you can use a JSON http header, and how to format an XHR send of a file to a Rails application.
相关问题
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Easiest way to get json and parse it using JQuery
- Eager-loading association count with Arel (Rails 3
相关文章
- json_encode 没有把数组转为json
- Livy Server: return a dataframe as JSON?
- Unexpected end of JSON input from an ajax call
- How do I do a nested list (array) of schema refere
- “No explicit conversion of Symbol into String” for
- Rspec controller error expecting <“index”> but
- iconv() Vs. utf8_encode()
- Factory_girl has_one relation with validates_prese
In order to get the file there successfully, you might need to assemble a request with a content-type of "multipart/form-data". Here's a page I found that seems to have the right kind of information to send you in the right direction:
http://www.smokycogs.com/blog/titanium-tutorial-how-to-upload-a-file-to-a-server/