Remove files from params when no file selected
Reported by Rob Anderton | March 13th, 2009 @ 09:15 AM | in 1.0
Attached is a patch and updated test for the multipart parser to make it skip file params that have no file selected. As discussed here
Comments and changes to this ticket
-
josh March 13th, 2009 @ 01:59 PM
- Milestone set to 1.0
- State changed from new to open
- Assigned user set to josh
-
Trevor Turk March 13th, 2009 @ 03:59 PM
I posted an alternate patch that sets the value to "" instead of nil here: http://rails.lighthouseapp.com/p...
But I think this patch results in the preferred behavior. I tested it with the Paperclip plugin in Rails and it solved the issue in that ticket.
Thanks Rob!
-
josh March 13th, 2009 @ 06:18 PM
- State changed from open to resolved
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป