Zeronet: Full server-side ZIP support

Created on 19 May 2018  路  4Comments  路  Source: HelloZeroNet/ZeroNet

Step 1: Please describe your environment

  • ZeroNet version: v0.6.2 (3467), but doesn't really matter
  • Operating system: Windows, doesn't matter
  • Web browser: Chrome, doesn't matter
  • Tor status: error, doesn't matter
  • Opened port: yes, doesn't matter
  • Special configuration: none, doesn't matter

Step 2: Describe the problem:

Opening a file within a ZIP, e.g. 127.0.0.1:43110/something/something.zip/gfdfdgd works. But WebSocket fileList, dirList, fileGet, etc. don't work.

Steps to reproduce:

  1. Try fileGet("yourzip.zip/file_within_zip.txt")

Observed Results:

File doesn't exist: data/users/1Cy3ntkN2GN9MH6EaW6eHpi4YoRS2nK5Di/Standard.zip/components/button.vue

Expected Results:

File content.

enhancement

Most helpful comment

Full support of fileList, dirList, fileGet on zip/tar.gz files has been added in the latest rev: https://github.com/HelloZeroNet/ZeroNet/commit/c8669328619f46f82ef46419b8f1566db05390d6

(fileList support has been added back in March)

All 4 comments

@imachug
Does ZIP needs to extract all other files to just read one file?

it just reads one file

This will be good for the USV format. Thanks.
So ZeroNet will nativelly play those videos by extracting frames from ZIP.

Full support of fileList, dirList, fileGet on zip/tar.gz files has been added in the latest rev: https://github.com/HelloZeroNet/ZeroNet/commit/c8669328619f46f82ef46419b8f1566db05390d6

(fileList support has been added back in March)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sermont picture sermont  路  3Comments

cxgreat2014 picture cxgreat2014  路  4Comments

unsystemizer picture unsystemizer  路  4Comments

yurivict picture yurivict  路  4Comments

sergei-bondarenko picture sergei-bondarenko  路  3Comments