|
|
@ -225,7 +225,10 @@ class FormDefinition(object): |
|
|
|
""" |
|
|
|
""" |
|
|
|
Validate a form field of type 'file'. |
|
|
|
Validate a form field of type 'file'. |
|
|
|
""" |
|
|
|
""" |
|
|
|
|
|
|
|
try: |
|
|
|
value = form_values[field_def['name']] |
|
|
|
value = form_values[field_def['name']] |
|
|
|
|
|
|
|
except KeyError: |
|
|
|
|
|
|
|
return None |
|
|
|
field_name = field_def['name'] |
|
|
|
field_name = field_def['name'] |
|
|
|
upload_fname = form_values[u'{0}__name'.format(field_name)] |
|
|
|
upload_fname = form_values[u'{0}__name'.format(field_name)] |
|
|
|
upload_fname_ext = os.path.splitext(upload_fname)[-1].lstrip('.') |
|
|
|
upload_fname_ext = os.path.splitext(upload_fname)[-1].lstrip('.') |
|
|
|