mod_zip icon indicating copy to clipboard operation
mod_zip copied to clipboard

Question about usage

Open macarthy opened this issue 5 years ago • 1 comments

HI,

I have a directories like :

-papers
-- paper1
---- paper1.pdf
---- image1.jpg
---- image2.jpg
-- paper2
---- paper2.pdf
---- image1.jpg
---- image2.jpg

Is it possible to have urls such as

papers/paper1.zip papers/paper2.zip

download the contents of the corresponding directory ? How would I config that ?

Thanks

macarthy avatar Dec 03 '20 05:12 macarthy

You need some logic in your server to take the request of paper1.zip, query the details of the folder content from s3 and pass the reply to mod_zip as described in https://github.com/evanmiller/mod_zip#Usage

Set up your nginx as proxy to pass the request to your logic and the reply is then taken by mod_zip. To set the name of the zip file see https://github.com/evanmiller/mod_zip#Tips

donkeyDau avatar Dec 10 '20 10:12 donkeyDau