I'm not sure what you mean by this - you can't upload files that the
user hasn't sent to you. In fact, the "full path" you're getting in
1.1.6 is a bug, caused by IE not sending the correct uploaded
filename. You'll probably need to look into the other multiple-file
upload plugins that are available.

--Matt Jones

On Jun 16, 12:57 pm, sultan <[email protected]> wrote:
> Thanks, Matt.
> In rails 1.1.6, when I print to the log “params[:gallery]
> [:filename].full_original_filename”, I get:
> C:\Documents and Settings\sultan\My Documents\Gallery\test
> \sultantest_1.JPG
>
> In rails 2.3.2, when I print to “params[:gallery][:filename].path”, I
> get:
> /tmp/RackMultipart.31803.2
>
> I really need the windows full path name, so that I can upload all the
> images in that directory (after I strip off  the first file name).
>
> On Jun 16, 9:36 am, Matt Jones <[email protected]> wrote:
>
>
>
> > Try using .path rather than .full_original_filename; looks like the
> > API was changed at some point.
>
> > --Matt Jones
>
> > On Jun 15, 12:06 pm, sultan <[email protected]> wrote:
>
> > > Problem with full_original_filename.
>
> > > I am upgrading from rails 1.1.6 to 2.3.2.
>
> > > View has:
> > > <%= file_column_field 'gallery', 'filename', :size => 100 %>
>
> > > Controller has:
> > > upload_dir = params[:gallery][:filename].full_original_filename
>
> > > Works fine in production which is rails 1.1.6.
>
> > > In development (rails 2.3.2)  I get:
> > > NoMethodError (undefined method `full_original_filename' for #<File:/
> > > tmp/RackMultipart.18693.2>):
> > >   /usr/local/lib/ruby/1.8/delegate.rb:268:in `method_missing'
> > >   app/controllers/galleries_controller.rb:238:in `upload_dir_name'
> > >   app/controllers/galleries_controller.rb:31:in `create'
>
> > > Any help would be appreciated. This is the last problem I am having
> > > with the upgrade.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to