Skip to content

Better support for ZIP and other container files#106

Open
mesemus wants to merge 1 commit into
inveniosoftware:masterfrom
oarepo:contribution-zip-files
Open

Better support for ZIP and other container files#106
mesemus wants to merge 1 commit into
inveniosoftware:masterfrom
oarepo:contribution-zip-files

Conversation

@mesemus
Copy link
Copy Markdown

@mesemus mesemus commented Oct 1, 2025

Description

This PR proposes a way of adding support for preview/extraction of files inside ZIP and other container files.

Terminology:

  • File is reserved for files stored in Invenio, such as blah.zip
  • Container is a file like ZIP, TAR, HDF5 and others
  • Container item denotes a file stored inside a container, such as an image inside a ZIP.

Associated pull requests with implementation of this RFC:

Sample repository

A sample repository is available at https://github.com/xsenyaaax/invenio-demo-zip

Current status

Preview of files within the ZIP archive works for all built-in previewers except of IIIF. For images, a simple image previewer might be used.

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

@xsenyaaax xsenyaaax force-pushed the contribution-zip-files branch 3 times, most recently from 6e4518a to 084fead Compare December 12, 2025 10:58
@mesemus mesemus marked this pull request as ready for review December 16, 2025 12:33
@kyodai0000 kyodai0000 force-pushed the contribution-zip-files branch 6 times, most recently from 32d456c to 80394c8 Compare February 13, 2026 13:27
@kyodai0000 kyodai0000 force-pushed the contribution-zip-files branch from 80394c8 to 019329b Compare February 13, 2026 14:08
@utnapischtim utnapischtim added this to v14 Mar 22, 2026
@utnapischtim utnapischtim moved this to Needed in v14 Mar 22, 2026
]

# We keep the original zip previewer here and remove IIIF
CONTAINER_ITEM_PREVIEWER_PREFERENCE = [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very small comment: the config var should start with PREVIEWER_, see here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needed

Development

Successfully merging this pull request may close these issues.

3 participants