diff --git a/src/main/java/zander/ui/LibraryUploadDialog.java b/src/main/java/zander/ui/LibraryUploadDialog.java index cf9fe17..80f2589 100644 --- a/src/main/java/zander/ui/LibraryUploadDialog.java +++ b/src/main/java/zander/ui/LibraryUploadDialog.java @@ -308,7 +308,8 @@ public class LibraryUploadDialog extends JDialog { } else { byte[] bytes = md.loadRawBytes(); rl.addBinaryFile(getPathForAlbum(as.getNameOnDisk()) + ms.getName(), bytes); - if (md instanceof ImageMediaData) { + // SVG files don't need a thumbnail + if (md instanceof ImageMediaData && !md.getType().startsWith("image/svg")) { uploadImageThumbnail(state, as, mc, ms, bytes); } else if (md instanceof VideoMediaData) { uploadVideoThumbnail(state, as, mc, ms, (VideoMediaData) md);