a2707301aa6d5239200eed6442e9e265091bde78
chmalee
  Mon Apr 8 16:35:53 2024 -0700
Add some more file extensions to allowed extension list

diff --git src/hg/js/hgMyData.js src/hg/js/hgMyData.js
index 9ca1d9e..0b11d29 100644
--- src/hg/js/hgMyData.js
+++ src/hg/js/hgMyData.js
@@ -320,31 +320,31 @@
         const endpoint = "../cgi-bin/hgHubConnect?deleteFile=" + fname;
         if (!(endpoint in pendingDeletes)) {
             const xhr = new XMLHttpRequest();
             pendingDeletes[endpoint] = xhr;
             this.xhr = xhr;
             this.xhr.open("DELETE", endpoint, true);
             this.xhr.send();
             deleteFileFromTable(rowIx, fname);
             delete pendingDeletes[endpoint];
         }
     }
 
     function viewInGenomeBrowser(rowIx, fname) {
         // redirect to hgTracks with this track as a custom track
         if (typeof uiState.userUrl !== "undefined" && uiState.userUrl.length > 0) {
-            bigBedExts = [".bb", ".bigBed"];
+            bigBedExts = [".bb", ".bigBed", ".vcf.gz", ".vcf", ".bam", ".bw", ".bigWig"];
             let i;
             for (i = 0; i < bigBedExts.length; i++) {
                 if (fname.toLowerCase().endsWith(bigBedExts[i])) {
                     // TODO: tusd should return this location in it's response after
                     // uploading a file and then we can look it up somehow, the cgi can
                     // write the links directly into the html directly for prev uploaded files maybe?
                     window.location.assign("../cgi-bin/hgTracks?db=hg38&hgt.customText=" + uiState.userUrl + fname);
                     return false;
                 }
             }
         }
     }
 
     function addNewUploadedFileToTable(req) {
         // req is an object with properties of an uploaded file, make a new row