Implementing Video Upload Restrictions and Conditional Compression in FlutterFlow

Database & APIs

Hello everyone,

I'm working on a FlutterFlow project and need some guidance on setting up video upload functionalities with specific constraints. Here’s what I'm trying to achieve:

1. **Upload Restrictions**: I want to ensure that any video uploaded by a user adheres to certain limits, specifically:

- Maximum duration of 2 minutes

- Size limit (e.g., 50 MB)

2. **Conditional Compression**: Depending on the video size, I would like to implement conditional actions:

- If the video size is below a certain threshold (e.g., less than 20 MB), it should be uploaded as is, without any compression.

- If it exceeds this threshold, the video should automatically be compressed before upload to reduce its size.

Could anyone share insights or resources on how to:

- Set these video upload restrictions in FlutterFlow?

- Implement a video compressor within the FlutterFlow environment?

Any examples, code snippets, or guidance on plugins and APIs that could be used for this purpose would be greatly appreciated. I am particularly interested in knowing how to manage file sizes and implement conditional logic based on those sizes within FlutterFlow.

Thanks in advance for your help!

What have you tried so far?

I've been exploring various video compression options but have hit a roadblock in determining if these can be integrated with conditional logic directly within FlutterFlow. Here’s what I have tried:

- I have looked into several video compressors but am struggling to find clear information on whether they can be used with conditional statements directly in FlutterFlow.

Did you check FlutterFlow's Documentation for this topic?
Yes
6
1 reply