fix: drag and drop evidence upload in safari and backend file list validation

This commit is contained in:
Nachou-u
2026-09-08 10:14:18 -03:00
parent 774821d468
commit f04fa59db5
2 changed files with 27 additions and 3 deletions
+6
View File
@@ -12,6 +12,12 @@ import os
class MultipleFileInput(forms.FileInput):
allow_multiple_selected = True
def value_from_datadict(self, data, files, name):
if hasattr(files, 'getlist'):
return files.getlist(name)
else:
return files.get(name)
class MultipleFileField(forms.FileField):
def __init__(self, *args, **kwargs):