If a file_field is empty it gives me an error. If I check it with nil? or blank? or size it stills gives me an error. What should I do to check if it has a file or not?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Checking if file_field is empty? | 8 | 891 | June 23, 2011 | |
empty file_column | 1 | 117 | August 28, 2007 | |
file upload field empty when validation error | 6 | 1025 | February 4, 2008 | |
How can I know if a file has been attached? | 0 | 125 | February 23, 2009 | |
file_field throws exception when field is left blank | 1 | 176 | May 13, 2008 |