Skip to content

Commit

Permalink
Merge pull request #912 from dandi/zarr-path-name
Browse files Browse the repository at this point in the history
Use full asset path as name of Zarr object
  • Loading branch information
yarikoptic committed Feb 16, 2022
2 parents 533eeb9 + ee73478 commit 0e6c5ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandi/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0e6c5ef

Please sign in to comment.