diff --git a/photologue/views.py b/photologue/views.py index a523fa1..11ff28a 100644 --- a/photologue/views.py +++ b/photologue/views.py @@ -311,6 +311,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(