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