How to make a File Uploader accept only files of a certain extenstion?

I’m not sure if this is the best category for it, but I am making a music related app, that utilizes a File Uploader to upload the songs. how do I make it so it only accepts the file types .mp3 or .wav?

One way to do this is to create a workflow event: “Input’s value is changed” and use it to delete the uploaded file if the uploaded file url doesn’t contain “.mp3”. You can also include an alert in this workflow to inform the user that it’s a wrong file type.

See attached screenshot below:

1 Like

Thanks!