Limit the video upload to a specific duration

Custom Code

Hello,

I have a page that allows users to upload videos for Local Upload. I would like to implement a restriction on the video duration, limiting it to a maximum of 2 minutes, I want to check the video duration before the video is uploaded to Supabase.

If the video duration is less than 2 minutes, it should be uploaded to Supabase. However, if the video duration exceeds 2 minutes, the uploaded video in Local Upload should be removed, and an informational dialog should be displayed to the user.

What have you tried so far?
Did you check FlutterFlow's Documentation for this topic?
Yes
2
2 replies