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

215
Visualizações
Upload webp an sending to server express and nodejs

I am developing a web application in node js with express, among its many functions I need to implement a small form to add products, with fields such as name, price, stock. just as I require an input in a form that allows me to upload a photo per product and when I receive it, I transform it into a webp type and after that I send it to the server where it can be stored with a unique code, I already have the entire form but I'm not sure how to send the change the photo in a format (so they can upload any compatible format and on the server it will still be saved as webp type), I tried implementing multer, but I didn't find any concise way to do it, is there any middleware ? or any concise and not too complicated way to do it? I also attach the dependencies that I have at the moment

const express = require('express');
const morgan = require('morgan');
const path = require('path');
const { engine } = require('express-handlebars');
const favicon = require('serve-favicon');
const session = require('express-session');
const MySQLStorage = require('express-mysql-session');
const flash = require('connect-flash');
const passport = require('passport');
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