Unzip folder and upload all files to Google cloud

I want to unzip a folder and upload all its files and folders to Google Cloud using PHP API. I am unable to find any google cloud function for this action .

Help me Please

Upvotes: 1

Views: 1767

Answers (1)

Serge Hendrickx
Serge Hendrickx

Reputation: 1416

You could make use of the gzip functionality and push the entire zip at once, like described on https://cloud.google.com/storage/docs/transcoding

Or you could unzip it on your own server and upload each file individually. But the first method seems to be preferable in my opinion.

Upvotes: 1

Related Questions