:remote => true not working when a file uploader is used in form

后端 未结 3 665
轮回少年
轮回少年 2021-01-07 18:47

Basically when I include and use a file uploader in my form it seems to cancel out the :remote => true functionality and processes the action as HTML in place of JS. any ide

3条回答
  •  别那么骄傲
    2021-01-07 19:43

    I was just faced with the same issue and found the following alternatives to make it work:

    Gem remotipart => http://www.alfajango.com/blog/rails-3-ajax-file-uploads-with-remotipart/

    jQuery Plugin 'jaxy' => https://github.com/adamlogic/jquery-jaxy

    I think I like the first option better. But it's good to have options. =)

提交回复
热议问题