mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-05-19 01:51:08 +00:00
Critical fix for image upload
This commit is contained in:
parent
d467253550
commit
7a391255a0
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ class ImageForm(forms.Form):
|
|||
|
||||
def save(self, commit=True):
|
||||
img = scale_and_crop(self.files['image'], **MARKDOWNX_IMAGE_MAX_SIZE)
|
||||
thumb_io = StringIO.StringIO()
|
||||
thumb_io = StringIO()
|
||||
img.save(thumb_io, self.files['image'].content_type.split('/')[-1].upper())
|
||||
|
||||
file_name = str(self.files['image'])
|
||||
|
|
|
|||
Loading…
Reference in a new issue