rubyizes set_upload_type controller method