Extract @has_upload into a method