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

378
Vistas
How to upload video and validate the size and send the file as a post request in React?

I am Junior Full Stack Developer working on a ReactJs web application, wherein user will upload a video which will then goes to the server(Using Axios) for processing(Open CV Stuff). For the server part I am using Fast Api.

The problem is how do i validate the video size before sending it to the server? Also i have to show a progress bar for uploading.

Can anyone recommend the best apporach for this and relevant code? Keep in mind I am a quite begineer to ReactJS :)

Here's my form

<form action='.' enctype="multipart/form-data">
   <div class="input-group">
       <label for="file-upload" class="custom-file-upload m-auto w-100 text-center">
            <i class="fa fa-cloud-upload"></i> Upload a video
       </label>
       <input id="file-upload" type="file"/>
   </div>
</form>
over 4 years ago · Santiago Trujillo
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