From 9dad47502e2429d0f43574aacf5a263d0a070fdb Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Mon, 7 Nov 2022 15:31:37 +0300 Subject: [PATCH] [#222] Update docs Signed-off-by: Denis Kirillov --- CHANGELOG.md | 3 +++ README.md | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c0b71f..9fb890f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ This document outlines major changes between releases. ## [Unreleased] +### Fixed +- Download zip archive when `FilePath` is invalid (#222) + ## [0.25.0] - 2022-10-31 ### Added diff --git a/README.md b/README.md index 8d03a43..1db3023 100644 --- a/README.md +++ b/README.md @@ -347,8 +347,8 @@ You can download some dir (files with the same prefix) in zip (it will be compre $ wget http://localhost:8082/zip/Dxhf4PNprrJHWWTG5RGLdfLkJiSQ3AQqit1MSnEPRkDZ/common/prefix ``` -**Note:** the objects must have a `FilePath` attribute, otherwise they will not be in the zip archive. -You can upload file with this attribute using `curl`: +**Note:** the objects must have a valid `FilePath` attribute (it should not contain trailing `/`), +otherwise they will not be in the zip archive. You can upload file with this attribute using `curl`: ``` $ curl -F 'file=@cat.jpeg;filename=cat.jpeg' -H 'X-Attribute-FilePath: common/prefix/cat.jpeg' http://localhost:8082/upload/Dxhf4PNprrJHWWTG5RGLdfLkJiSQ3AQqit1MSnEPRkDZ