Oct-19-2016, 08:49 PM
Yes, this is intended as the check is to split the extension name from the filename and check to see if it's in "image_ext". Thus the reason for these lines:
fname,extname = os.path.splittext(file_information.filename) if extname.lower() in (image.lower() for image in image_ext)