Sushma Kundapur
Sushma Kundapur

Reputation: 31

Google cloud storage - How to specify allowed file formats as part of signed URL

Google cloud storage - How to specify allowed file formats as part of signed URL validation

I want to allow only zip files to be uploaded to GCS by the user .How do I restrict the user ? User will have only signed URL ,which directly interacts with GCP .

Is there any attribute which can be set as part of generating signed URL ?

Thanks in advance

Upvotes: 2

Views: 1096

Answers (1)

Sakshi Gatyan
Sakshi Gatyan

Reputation: 2116

You can specify -c <content_type> as zip while creating the signed URL.

Check this

Upvotes: 3

Related Questions