Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

283
Visualizações
How do I access x-goog-hash response headers?

I'm trying to access the md5 that returns from uploading file to Google Cloud Storage.
But, I can only get the other headers, not the x-goog-hash that contains the md5.

Attached image of response headers

async uploadVideo(uploadURL: string, file: any) {
    return axios
      .put(uploadURL, file, {
        headers: {
          "content-type": "application/octet-stream",
        },
      })

      .then((response) => console.log(response))

      .catch((error) => {
        console.log("error: " + error);
      });
  }

This is what the console.log shows:

{
    "data": "",
    "status": 200,
    "statusText": "",
    "headers": {
        "access-control-allow-origin": "*",
        "content-length": "0",
        "content-type": "text/html; charset=UTF-8",
        "date": "Tue, 01 Mar 2022 09:22:11 GMT",
        "server": "UploadServer",
        "x-guploader-uploadid": "ADPycdvmU7_-9wqmePl5m_jzzdCWmr84AZwEbv2SJJ99kJLkq2eYzpQqrMaK4mHu_RiNVI3WzTkVH5Y"
    },
    "config": {
        "transitional": {
            "silentJSONParsing": true,
            "forcedJSONParsing": true,
            "clarifyTimeoutError": false
        },
        "transformRequest": [
            null
        ],
        "transformResponse": [
            null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "headers": {
            "Accept": "application/json, text/plain, */*",
            "Content-Type": "application/octet-stream"
        },
        "method": "put",
        "url": "https://storage.googleapis.com/.........
        "data": {}
    },
    "request": {}
}
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda