[IMPLEMENTED] Batch asset download

Hi Sebastian,

Most of the time we need to download all the assets on the server or at least download all the files in folder. But manually downloading all of them one by one is very challenging. A small improvement can be made here. I am aware that files must be compressed (zip) downloaded for batch file downloading. With some large file sizes this can cause server side problems . So a little validation and tweaking on appsettings.json can save the situation here.

My suggestion is as follows:

  • With the download link added on a folder, all files in the folder can be downloaded by compressing (zip).
  • Selected Files can be downloaded in bulk compressing (zip).
  • All files can be downloaded compressing (zip).

Validation and Appsettings.json (Rules)
“assets”: {
“downloadableTotalSize”: 100, //MB

If the total size of the files to be downloaded is above the specified value in appsettings.json, a notification will appear.

The total file size requested to be downloaded is above the allowable amount. (100MB)

Folder Download Sample:

All Files Download:

Selected Files Download:

I can add something to the CLI, but I see very little advantage doing it in the backend:

  1. The files need to be downloaded to a local disk, so I need much more disk space.
  2. The files need to be archived, so it takes a lot of CPU performance.
  3. Most files are images, where compression has very little impact anyway.
1 Like

Your ideas and experiences are valuable to me. It can be useful to add to the CLI side.

1 Like

I have implemented it in cli-v7.17. If you do not see the release yet, the build is probably still running.

1 Like

Please note that you can also export to a zip file directly, but you need a fix from cli-v7.19 for that which is currently in the pipeline.

Just a

sq assets export download.zip
1 Like

This topic was automatically closed after 2 days. New replies are no longer allowed.