From c73f78bb424ce95eb9527ad77256b1434229ed85 Mon Sep 17 00:00:00 2001 From: Stash Dev Date: Sat, 23 Mar 2019 16:30:10 -0700 Subject: [PATCH] JPEG is a valid gallery file. Closes #28 --- pkg/models/model_gallery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/model_gallery.go b/pkg/models/model_gallery.go index 76d494185..f410c2079 100644 --- a/pkg/models/model_gallery.go +++ b/pkg/models/model_gallery.go @@ -98,7 +98,7 @@ func (g *Gallery) listZipContents() ([]*zip.File, *zip.ReadCloser, error) { continue } ext := filepath.Ext(file.Name) - if ext != ".jpg" && ext != ".png" && ext != ".gif" { + if ext != ".jpg" && ext != ".jpeg" && ext != ".png" && ext != ".gif" { continue } if strings.Contains(file.Name, "__MACOSX") {