How to limit video uploads with Multi-File Uploader

Hello, bubblers.
I have a issue about Multi-File Uploader. I have created an app that uploads multiple photos and displays them in a Repeating Group with Multi-File Uploader. However, you can upload videos and it will use up space. Is there any way to limit video uploads with Multi-file uploader?

Hey @shota,

I don’t believe there is an option to limit this. Maybe someone else might have a workaround for this?

The following doesn’t strictly limit what is uploaded but it will stop you from storing to your database and inform the use of what file types are allowed to be uploaded.

If you want to restrict the types of Image file types

  1. Add an alert element to your page to tell the user “Only jpg, jpeg, png, or gif area allowed.”
  2. Add a workflow step to limit the file types to jpg, jpeg, png or gif. Go to workflow and click on Click here to add an event and select Elements → An Input Value is changed

Input changes
3. In the Element select the File Upload File and then set only when

"This FileUploader’s value’s file name does not contain “jpg” or This FileUploader’s value’s file name :lowercase does not contain “jpeg” AND This FileUploader’s value’s file name :lowercase does not contain “png” or This FileUploader’s value’s file name :lowercase does not contain “gif”
You can add more file types that you allow by adding more “AND” conditions
When File Name Changes

  1. Add an action to “Show message in an alert box” and select your alert message.
  2. a) Because these actions only fire when a file that is not allowed is uploaded, we want to add an action to reset relevent inputs.
  3. b) If you have other elements on the page that you may want to reset, place the above in a group and use the group reset.

I hope this helps.

1 Like

Thank you for your answer.
I want to limit video files so I ran it this way but when I upload photo files, I get an alert.

You can do the same thing that @lindquisterik1 suggested but instead put it in a conditional and disable the uploader

How exactly should I do this? I’m a beginner, so I’d appreciate it if you could tell me more.

Yeah, so take the expression that @lindquisterik1 talked about, and create a new condition on the file uploader you have, then put the expression in that conditional, select a new type and select disable the input

I tried this way like that but it doesn’t work.
ă‚čクăƒȘăƒŒăƒłă‚·ăƒ§ăƒƒăƒˆ 2020-12-25 12.27.11

This topic was automatically closed after 70 days. New replies are no longer allowed.