Skip to content

Use “Download File” instead of “Download ZIP” for single-file datasets #1010

Description

@ChengShi-1

For datasets containing only one downloadable file, the Access Dataset menu currently displays Original Format ZIP. However, downloading a single-file dataset should not require creating a ZIP archive. Instead, the frontend should download the file directly using the single-file download API and update the menu text to Download File. Also, for the use case we used, should change to a single-file download.

Image

Expected behavior
When the dataset contains exactly one downloadable file:

  • The menu option should display “Download File.”
  • Clicking it should use the single-file download API.
  • The file should be downloaded directly rather than packaged in a ZIP archive.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Sprint Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions