Matthew MacLeod schrieb:
> On Jun 18, 7:06 pm, Ronny Fauth <[email protected]>
> wrote:
>   
>>  name =  upload['datafile'].original_filename
>>
>> doesn't work for me
>>     
>
> Have you made sure to set :enctype => 'multipart/form-data' in your
> form?
>
> -Matt
>   
i _thought_ i had, but the syntax of the form-tag did something else

<% form_tag( { :action => 'uploadfile' }, :multipart => true ) do %> 
-----> works now
<% form_tag :action => 'uploadfile' , :multipart => true do %> -----> do 
not work (upload?multipart=true)
<% form_tag( { :action => 'uploadfile' }, {:multipart => true} ) do %> 
-----> do not work (upload?multipart=true)
<% form_tag( { :action => 'uploadfile' },  : html => {:multipart => 
true} ) do %> -----> do not work (upload?multipart=true)

strange thing...

--~--~---------~--~----~------------~-------~--~----~
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