2

I am using AWS SDK Java for file upload. I want to upload a file on s3 as zip.

Is there any method which will directly zip my file which I upload on s3.

Or It is mandatory for me to create a zip and then upload to s3.

Thank you.

wjordan
  • 19,770
  • 3
  • 85
  • 98
Salman Shaikh
  • 575
  • 1
  • 7
  • 24
  • Zip the file(s) before you upload them to S3. Or do something complex such as configure a Lambda function to automatically detect uploaded files and convert them to ZIP files (by downloading them, zipping them, uploading them, deleting the original). – jarmod Dec 31 '16 at 21:38

1 Answers1

2

You're required to either zip the file before uploading it, or use a Lambda function to zip the file once it's uploaded.

There is no 'helper' in the SDK to achieve what you're asking.

Chris
  • 3,437
  • 6
  • 40
  • 73