Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

116
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda