File_column and multiple image upload

Hello!

I can’t find an answer to this question.
Is it possible to make multiple image uploads using file_column?
If not what is the best alternative?

I don’t know about file_column, but acts_as_attachment can do that
pretty
easily.

you can use this with file_column to upload multiple files

http://the-stickman.com/web-development/javascript/upload-multiple-
files-with-a-single-file-element/

On 9/14/06, Louis S. [email protected] wrote:

I can’t find an answer to this question.
Is it possible to make multiple image uploads using file_column?
If not what is the best alternative?


Posted via http://www.ruby-forum.com/.

www.blogsaic.com
search, post, blog

Dion H. wrote:

you can use this with file_column to upload multiple files

http://the-stickman.com/web-development/javascript/upload-multiple-
files-with-a-single-file-element/

www.blogsaic.com
search, post, blog

Thx guys for alternatives. Now i am trying to get multiple script
working with file_column. Can anybody help me with view/controller?,
because my files dont get saved properly.

Hi Pablo.

I have got file_column working with multiuple uploads, it only needs a
few extra lines of code to handle. Unfortunately I haven’t got the
code with me as I’m at work now. If noone else can help I’ll post it
later.

Ross

On 9/14/06, pablo [email protected] wrote:


Ross R.
[email protected]

I need this code lines, please…

El jue, 14-09-2006 a las 09:31 +0100, Ross R. escribió:

Juan =?ISO-8859-1?Q?Jos=E9?= Vidal wrote:

I need this code lines, please…

El jue, 14-09-2006 a las 09:31 +0100, Ross R. escribió:

me too…pleeease.

hey guys… sorry I forgot to post.

The key to getting this working is in the view. Don’t use the standard
helpers. My view has the following in a partial.





where @i is a unique id for each resource.


Then in the controller all you need is the following in the action
that receives the post:

params[:resource].each do |id, resource|
@email.resources<< Resource.create(resource)
end

As you can see this is based on multiple attachments for emails if
your associations are not like this you may need to adjust
accordingly, but if you need help post back with your code.

Ross

On 9/17/06, pablo [email protected] wrote:


Ross R.
[email protected]