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

115
Visualizações
How to have a controlled file upload button in material-table

I have columns like this :-

const columns = [
  {
    field: "truck_in_time",
    title: "Truck in time",
    editable: "never",
  },
  {
    field: "truck_out_time",
    title: "Truck out time",
    editable: "never",
  },
  {
    field: "document",
    title: "Document",
    width: 160,
    render: (params) => {
      return (
        <>
          <button
            onClick={() => console.log(params)}
            className="productListEdit"
          >
            Upload
          </button>
        </>
      );
    },
    editable: "never",
  },
  {
    field: "remarks",
    title: "Remarks",
    width: 160,
    editable: "onUpdate",
  },
];

I want something for upload like we have for the edit button.When we select a file through upload button, we get that data and can send it to our backend api.

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