Skip to content

Commit 32ea6fa

Browse files
scpa1055cassava
authored andcommitted
ui: Add proper file type for gzip upload
1 parent 49ca483 commit 32ea6fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/navbar.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function NavBar(props) {
3535
props.getSimulationDataFromJSON(file, e.target.result);
3636
};
3737
reader.readAsText(file);
38-
} else if (file.type === "application/x-gzip") {
38+
} else if (file.type === "application/x-gzip" || file.type === "application/gzip") {
3939
const fd = new FormData();
4040
fd.append("uploaded_file", file);
4141
const config = {

0 commit comments

Comments
 (0)