Don't upload thumbnails for svg files
This commit is contained in:
parent
797615877b
commit
e23cbc2ed5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user