【发布时间】:2023-04-01 14:52:01
【问题描述】:
我正在使用 mongoid-paperclip 在 amazon s3 上上传图像,并且使用 multipart/form-data 在网络上运行良好。
但是当我尝试使用 CURL 或 RestKit 使用 HTTP PUT 请求上传图像时,更新配置文件有效并返回 { status: ok } 但文件没有上传。
用户类
has_mongoid_attached_file :avatar,
:styles => {
:original => ['1000x1000>', :png],
:small => ['64x64#', :png],
:medium => ['250x250', :png],
:large => ['500x500>', :png]
},
:convert_options => { :all => '-background white -flatten +matte' }
所以现在我不知道问题出在哪里,是来自 RestKit 还是来自回形针?
【问题讨论】:
标签: iphone ruby-on-rails mongoid paperclip restkit