【问题标题】:Rails3 ajax upload with Iframe使用 iframe 上传 Rails3 ajax
【发布时间】:2011-04-05 04:36:11
【问题描述】:

在 rails3 之前,我有一个有效的多 ajax(mootools) 文件上传解决方案。 我将 form_to_remote 与 iframe 和 responds_to_parent 一起使用。

在 rails3 中,带有 form_tag remote => true, traget => "my_iframe" 的 ajax 上传不起作用。 文件的参数 [:uploaded_image] 丢失。 我不知道为什么。

谁能推荐一个好的ajax文件上传解决方案?

【问题讨论】:

    标签: ruby-on-rails file-upload ruby-on-rails-3 unobtrusive-javascript multifile-uploader


    【解决方案1】:

    remotipart gem 可能是你想要的,它比 responds_to_parent 更简单,而且它与 rails 3 一起使用。请参考:

    https://github.com/formasfunction/remotipart

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-02-22
      • 2011-02-23
      • 2011-10-17
      • 2012-04-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多