简体   繁体   中英

Download zip file from S3 using API Gateway directly

Is it possible to download Zip file present in S3 using API Gateway alone.

Configurations:

Integration type: AWS Service (S3)

endpoint: GET

Content-Type: application/zip (or) application/octet-stream

A corrupted zip file is getting downloaded.

I could able to do a workaround using S3 presigned url and don't want to make the bucket public.

The file can get corrupted when some headers are missing from the upload PUT request. Please make sure the file is not-corrupted by downloading it manually and checking. If it's corrupted from the GET request only please make sure you include all the needed headers in the GET request too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM