Skip to content

Commit 0502ae6

Browse files
Make all files downloadable
1 parent a831d7a commit 0502ae6

File tree

1 file changed

+3
-3
lines changed
  • viplab-standalone-frontend-vue/src/pages/viplab

1 file changed

+3
-3
lines changed

viplab-standalone-frontend-vue/src/pages/viplab/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,9 +1185,9 @@ export default {
11851185
} else if (item.identifier == identifier) {
11861186
// handle files that were downloaded from s3
11871187
var itemContent = "";
1188-
if (item.MIMEtype === "text/plain" || item.MIMEtype === "image/png" || item.MIMEtype === "image/jpeg" || item.MIMEtype === "text/csv" || item.MIMEtype === "application/vnd.kitware") {
1188+
//if (item.MIMEtype === "text/plain" || item.MIMEtype === "image/png" || item.MIMEtype === "image/jpeg" || item.MIMEtype === "text/csv" || item.MIMEtype === "application/vnd.kitware") {
11891189
itemContent = item.url;
1190-
}
1190+
//}
11911191
content = itemContent;
11921192
}
11931193
});
@@ -1207,7 +1207,7 @@ export default {
12071207
elem.click();
12081208
document.body.removeChild(elem);
12091209
});
1210-
} else if (((mimetype === "image/png" || mimetype === "image/jpeg") && content.includes("blob:http")) || ((mimetype === "text/plain" || mimetype === "image/png" || mimetype === "image/jpeg" || mimetype === "text/csv" || mimetype === "application/vnd.kitware") && content.startsWith("http"))) {
1210+
} else if (((mimetype === "image/png" || mimetype === "image/jpeg") && content.includes("blob:http")) || content.startsWith("http")) {
12111211
// handle files that were downloaded from s3
12121212
blob = await fetch(content).then(response => response.blob());
12131213
} else {

0 commit comments

Comments
 (0)