Titanium + Rails + Paperclip === NULL values?
问题 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. 回答1: 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/ 来源: https://stackoverflow.com