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

374
Views
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
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!