在Ruby on Rails 3上上传多个文件 [英] Multiple files uploading on Ruby on Rails 3

查看:180
本文介绍了在Ruby on Rails 3上上传多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将多张图片上传到我的Rails 3应用程序。我目前使用回形针上传图片,我有一些后处理操作分配到模型照片。

我看到网上的一些示例(集成uploadify,swfupload或者其他一些库),但没有一个是非常详细的,每个人都想念一些步骤。


这样做最简单的方法是什么?

解决方案

好的JQuery上传器是 jQuery-File-上传。它有一些回形针样品,你可以找到一个演示这里


I would like to upload multiple pictures to my Rails 3 application. I am currently using Paperclip to upload a picture, and I have some post processing operations assigned to the model Photo.

I saw some samples on the net (integrating uploadify, swfupload or some other libraries), but none was very detailed, and each one misses some steps.

What is the simplest way to do this?

解决方案

A good JQuery uploader is jQuery-File-Upload . It has some paperclip samples and you can find a demo here

这篇关于在Ruby on Rails 3上上传多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆