Validation of file uploads

protected
def validate
errors.add(“imagefile”, “Must be a valid file.”) unless imagefile.respond_to? :read
end

Haven’t tested this, try this out tho.

Vish