开发者

How can I let my users upload multiple pictures at the same time?

I have a ruby on rails website. One feature allows people to upload pictures but users find it painstaking to upload pictures one at开发者_如何学编程 a time. What is the best way to allows users to upload multiple pictures at the same time?


try Uploadify or SWF upload. I've used both on Codeigniter projects but I prefer Uploadify. Both are flash based, have similar interfaces and are easily configurable. They allow multiple uploads in a queue and users can cancel the uploads too.

hope this helps


Multiple file fields or some javascript magic to do multiple file fields

I'm not a big fan of those javascript/flash uploaders, but they might be to your liking.


It's not problem to have two fields in your form for two different file attributes on an object. if you are using the paperclip plugin, you would just have two attachments in the model.

You may have a one-many situation where you want to allow the user to click "add file" or "remove file" in a dynamic way to expose more fields. If so, check out Ryan Bates site at railscasts.com - the last few episodes are about hierarchical forms.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜