elsif res.body and res.body.to_s =~ /Upload File/