Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

347
Views
Cuerpo de publicación de solicitud de compresión Axios

Estoy creando una aplicación web de reacción que debe llamar a un punto final de publicación REST posterior en las funciones de Firebase Cloud, el único problema es que la solicitud típica que se realizará superará el límite de 10 mb:

 /** * Create a new flyer inside the storage. * @param {String} adminID [Identifier of the admin issuing the request] * @param {Object} flyer [Flyer to upload in the storage] * @returns {Object} [Containing the response] */ postFlyerAsync(adminID,flyer){ return new Promise((res,rej)=>{ const URL = endpoint + "postFlyer"; return axios .post(URL,flyer, { params: { adminID: adminID } }) .then((response) => { console.log(response) return res(response.data); }) .catch((err) => { return rej(err); }); }) }

¿Existe alguna forma de comprimir el cuerpo? Probé un millón de paquetes npm diferentes, pero no son compatibles con la configuración del paquete web o son demasiado lentos... ¿alguna sugerencia?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Ninguna cantidad de compresión resolverá su problema.

Puede lograr la misma seguridad sin abrir su almacenamiento haciendo que su punto final devuelva una URL de carga firmada. https://cloud.google.com/storage/docs/access-control/signed-urls

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!