diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 8059837676..eb62249fae 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -49,6 +49,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released - Fixed that the flood-filling action was available in the context menu although an editable mapping is active. Additionally volume related actions were removed from the context menu if only a skeleton layer is visible. [#7975](https://github.com/scalableminds/webknossos/pull/7975) - Fixed that activating the skeleton tab would always change the active position to the active node. [#7958](https://github.com/scalableminds/webknossos/pull/7958) - Fixed that skeleton groups couldn't be collapsed or expanded in locked annotations. [#7988](https://github.com/scalableminds/webknossos/pull/7988) +- Fixed uploading datasets in neuroglancer precomputed and n5 data format. [#8008](https://github.com/scalableminds/webknossos/pull/8008) ### Removed diff --git a/frontend/javascripts/admin/dataset/dataset_upload_view.tsx b/frontend/javascripts/admin/dataset/dataset_upload_view.tsx index 0365a83d2d..8d949807c8 100644 --- a/frontend/javascripts/admin/dataset/dataset_upload_view.tsx +++ b/frontend/javascripts/admin/dataset/dataset_upload_view.tsx @@ -556,11 +556,14 @@ class DatasetUploadView extends React.Component { } let needsConversion = true; + const fileBaseNames = fileNames.map((name) => name.split(/[\\/]/).pop()); if ( containsExtension("wkw") || - containsExtension("zarray") || - fileNames.includes("datasource-properties.json") || - fileNames.includes("zarr.json") + containsExtension("zarray") || // zarr2 + fileBaseNames.includes("datasource-properties.json") || // wk-ready dataset + fileBaseNames.includes("zarr.json") || // zarr 3 + fileBaseNames.includes("info") || // neuroglancer precomputed + fileBaseNames.includes("attributes.json") // n5 ) { needsConversion = false; }