No description
Find a file
2025-10-20 22:12:32 +00:00
.github chore: Update github actions 2025-06-10 15:33:21 +02:00
.tx [tx-robot] Update transifex configuration 2022-10-01 02:30:42 +00:00
appinfo feat(deps): Add Nextcloud 33 support 2025-09-04 12:52:27 +02:00
img feat: Move to vue and @nextcloud/files actions 2023-12-15 16:09:59 +01:00
l10n fix(l10n): Update translations from Transifex 2025-10-03 00:50:05 +00:00
lib fix: Apply temporary user for zip operation 2025-01-02 15:36:33 +01:00
LICENSES chore. Add missing license file 2024-05-09 17:53:04 +02:00
src chore: Move to vue3 2025-06-10 15:43:34 +02:00
tests fix(files): upgrade vite-config to 1.4.2 2024-09-27 15:32:37 +02:00
.eslintrc.cjs chore: Move to vue3 2025-06-10 15:43:34 +02:00
.gitignore chore: Add SPDX header 2024-05-09 17:52:42 +02:00
.nextcloudignore chore: Add SPDX header 2024-05-09 17:52:42 +02:00
.php-cs-fixer.dist.php chore: Add SPDX header 2024-05-09 17:52:42 +02:00
AUTHORS.md chore: Add SPDX header 2024-05-09 17:52:42 +02:00
CHANGELOG.md chore(release): Bump version to v2.1.0 2024-09-27 16:39:03 +02:00
composer.json chore(deps-dev): Bump nextcloud/ocp from 26.0.9 to 27.1.8 2024-04-08 22:11:31 +00:00
composer.lock Chore(deps-dev): Bump nextcloud/coding-standard from 1.3.1 to 1.3.2 2024-10-21 22:08:09 +00:00
COPYING Initial commit 2021-04-23 11:38:24 +02:00
krankerl.toml Prepare build 2021-08-10 12:05:23 +02:00
package-lock.json Chore(deps): Bump @rollup/rollup-darwin-arm64 from 4.52.4 to 4.52.5 2025-10-20 22:10:32 +00:00
package.json Chore(deps): Bump @rollup/rollup-darwin-arm64 from 4.52.4 to 4.52.5 2025-10-20 22:10:32 +00:00
README.md docs: Add note about occ worker to readme 2025-01-14 08:40:48 +01:00
REUSE.toml chore: Migrate REUSE to TOML format 2024-07-07 19:43:36 +02:00
stylelint.config.cjs chore: Add SPDX header 2024-05-09 17:52:42 +02:00
tsconfig.json chore: Move to vue3 2025-06-10 15:43:34 +02:00
vite.config.ts chore: Add SPDX header 2024-05-09 17:52:42 +02:00

Zipper

REUSE status

Create zip archives from one or multiple files from within Nextcloud. The archive will be created in the background during cron job execution, so make sure that you have setup a regular cron job. Once the file has been created, the user will be notified about that.

Usage

After installing and enabling the Zipper app, a new contextual menu option labeled Compress to Zip will appear when right-clicking a file or folder as well as under the ...Actions menu at the top of the file list in the Nextcloud Web inteface. A notification will be generated immediately for the user to inform them that the zip file creation is pending (queued). An additional notification will be generated when the zip file is available for download.

Worker

To not wait for the cron job but pick up zip jobs immediately you can run a separate worker process with the following occ command e.g. as a systemd service:

occ background-job:worker 'OCA\FilesZip\BackgroundJob\ZipJob'

Development

The app requires frontend code build in order to run it from the git repostitory:

  • Install dependencies: npm ci
  • Build the app npm run build

API

Capabilities Endpoint

The Capabilities endpoint will announce the possibility to create zip files through the API with the available API version. Currently only v1 is available.

  "files_zip": {
    "apiVersion": "v1"
  },

Scheduling a zip file creation

POST /ocs/v2.php/apps/files_zip/api/v1/zip

Parameters:

  • fileIds: (int[]) List of file ids to add to the archive, e.g. [18633,18646,18667]
  • target: (string) Full path of the target zip file in the user directory, e.g. /path/to/file.zip

Configuration

Limiting File Size

In some cases it might be wanted to limit the maximum size of files in total that may be added to zip files. That might be for example useful if the amount of space on /tmp needs to be calculated in order to have enough space for compression.

Setting the limit to 1GB (in bytes):

occ config:app:set files_zip max_compress_size --value=1073741824

The default value is unlimited (-1).