diff --git a/photologue/views.py b/photologue/views.py index 52d4776..0cf9ab3 100644 --- a/photologue/views.py +++ b/photologue/views.py @@ -272,6 +272,7 @@ class GalleryUpload(PermissionRequiredMixin, FormView): try: opened = Image.open(photo_file) opened.verify() + photo_file.seek(0) except Exception: # Pillow doesn't recognize it as an image, skip it messages.error(