Titanium + Rails + Paperclip === NULL values?

独自空忆成欢 提交于 2019-12-08 05:48:56

问题


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/questions/5903565/titanium-rails-paperclip-null-values

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!