mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Validate image size in pixels at upload time (#3003)
This commit is contained in:
@@ -29,4 +29,4 @@ class UploadRenderer(BaseRenderer):
|
||||
|
||||
def render(self, data, accepted_media_type=None, renderer_context=None):
|
||||
self.media_type = data['media_type']
|
||||
return data['file']
|
||||
return data['file'].read()
|
||||
|
||||
Reference in New Issue
Block a user