From ee73478df457d4e6a18eaedff9525bbee0d77a37 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Wed, 16 Feb 2022 11:04:45 -0500 Subject: [PATCH] Use full asset path as name of Zarr object --- dandi/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dandi/files.py b/dandi/files.py index 9ef54b71f..8e298617a 100644 --- a/dandi/files.py +++ b/dandi/files.py @@ -798,7 +798,7 @@ def iter_upload( lgr.debug("%s: Beginning upload", asset_path) bytes_uploaded = 0 r = client.post( - "/zarr/", json={"name": self.filepath.name, "dandiset": dandiset.identifier} + "/zarr/", json={"name": asset_path, "dandiset": dandiset.identifier} ) zarr_id = r["zarr_id"] with RESTFullAPIClient(