web client: allow downloading of single shared files without compression

Fixes #629
This commit is contained in:
Nicola Murino
2021-11-30 20:32:10 +01:00
parent 5db31f0fb3
commit 4df0ae82ac
8 changed files with 166 additions and 21 deletions

View File

@@ -22,7 +22,7 @@ info:
SFTPGo also supports virtual folders, a virtual folder can use any of the supported storage backends. So you can have, for example, an S3 user that exposes a GCS bucket (or part of it) on a specified path and an encrypted local filesystem on another one.
Virtual folders can be private or shared among multiple users, for shared virtual folders you can define different quota limits for each user.
SFTPGo allows to create HTTP/S links to externally share files and folders securely, by setting limits to the number of downloads/uploads, protecting the share with a password, limiting access by source IP address, setting an automatic expiration date.
version: 2.2.0
version: 2.2.0-dev
contact:
name: API support
url: 'https://github.com/drakkan/sftpgo'
@@ -69,11 +69,18 @@ paths:
summary: Download shared files and folders as a single zip file
description: A zip file, containing the shared files and folders, will be generated on the fly and returned as response body. Only folders and regular files will be included in the zip. The share must be defined with the read scope and the associated user must have list and download permissions
operationId: get_share
parameters:
- in: query
name: compress
schema:
type: boolean
default: true
required: false
responses:
'200':
description: successful operation
content:
'application/zip':
'*/*':
schema:
type: string
format: binary