The upper critical field of high temperature superconductors