Skip to content

Commit

Permalink
filter browsed file formats on upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert-R committed Oct 30, 2023
1 parent cf00e9b commit a3673f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/section/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ class AddSections(forms.Form):
name = forms.CharField(max_length=128, required=False)
tag = forms.CharField(max_length=128, required=False)
group = forms.CharField(max_length=128, required=False)
files = forms.FileField(widget=MultipleFileInput, validators=[audio_file_validator()])
files = forms.FileField(widget=MultipleFileInput(attrs={'accept':'.wav,.mp3,.aiff,.flac,.ogg'}),
validators=[audio_file_validator()])

0 comments on commit a3673f5

Please sign in to comment.