This commit is contained in:
Jannes Höke 2016-01-12 13:16:43 +01:00
parent f71c40e0b8
commit 332667c98b

View file

@ -85,7 +85,7 @@ class InputFile(object):
self.filename = os.path.basename(self.input_file.name)
elif from_url:
self.filename = os.path.basename(self.input_file.url)\
.split('?')[0].split('&')[0]
.split('?')[0].split('&')[0]
try:
self.mimetype = InputFile.is_image(self.input_file_content)