By mittalyashu
I am uploading a zip file which contain images.
How to unzip the zip file while uploading to spaces using aws-sdk package?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there @mittalyashu,
I believe that in general S3 isn’t really designed to allow this.
Usually, you would have to download the file, unzip it and then upload the extracted files.
However, what you could do instead is use s3fs and mount the S3 bucket as a local filesystem. That way you could use the usual UNIX tools and unzip the file directly, the operations will be hidden behind the filesystem interface.
Hope that this helps. Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.