mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
forms: fix image file upload in CachedFileField
This commit is contained in:
committed by
Raphael Michel
parent
c6fa19d771
commit
2d5d27e950
@@ -229,7 +229,7 @@ class ExtValidationMixin:
|
||||
raise forms.ValidationError(_("Filetype not allowed!"))
|
||||
|
||||
if ext in IMAGE_EXTS:
|
||||
validate_uploaded_file_for_valid_image(data)
|
||||
validate_uploaded_file_for_valid_image(data if isinstance(data, UploadedFile) else data.file)
|
||||
|
||||
return data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user