Easy way to do ajax uploading with paperclip in rails?

感情迁移 提交于 2019-12-21 09:33:56

问题


I was wondering if there was an easy way e.g. a plugin, to do ajax uploading in rails with paperclip or am I going to have to build it from scratch?

Cheers!

Edit: Also, I'm looking for a non-flash solution.


回答1:


You can try remotipart(http://os.alfajango.com/remotipart). It's a gem fine integrated with Rails 3.1 and 3.0.

I have tried it, and all the ajax-file-upload handled like magic.




回答2:


I had this problem.

Perhaps my solution is your solution

Problem paperclip with ajax




回答3:


EDIT:

You'll find two versions of ajax upload on https://github.com/apneadiving/Pic-upload---Crop-in-Ajax.

Branch master: it uses http://aquantum-demo.appspot.com/file-upload

Branch uploadify: It uses Uploadify: http://www.uploadify.com/

Both have built-in Crop.




回答4:


For now I think the answer to this is no. I went with the good old iframe faux-ajax upload, I think we're stuck with this until all the browser support the nice new html uploading.



来源:https://stackoverflow.com/questions/4844869/easy-way-to-do-ajax-uploading-with-paperclip-in-rails

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