error message on upload says jpg file not allowed, but it is one of the file types that is allowed.