#199 ✓invalid
Steven Luscher

Should be able to perform file upload with form containing multiparameter attributes

Reported by Steven Luscher | March 16th, 2009 @ 02:55 PM

Here's a really strange one.

I have a form with both a file upload field and a multiparameter datetime select.

If I submit the form without attaching a file, everything is fine.


fill_in("name", :with => "Jane Doe")
click_button("submit")

But as soon as I attach a file…


fill_in("name", :with => "Jane Doe")
attach_file("photo", "path/to/file.jpg", "image/jpeg")
click_button("submit")

I get this error:


undefined method `birthday%284i%29=' for #<Profile:0x3d470e4> (NoMethodError)

It seems as though something is taking birthday(4i) and escaping the curved brackets, but only when the form being submitted has a file attached.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages