简体   繁体   中英

Save file in google cloud storage from android application?

How to save file with expiration time(ie file will be automatically deleted from storage) in google cloud storage from android application & get public url of file stored in bucket.

I have created bucket & set public access to it but unable to find any way of storing file in google cloud storage without any authentication.

Read google cloud documentation but there is documentation specific to android.

Please help.

You cannot set a TTL for a specific object, but you can configure a global TTL on the bucket via lifecycle config .

As for authenticating uploads from the Android application, the best way is to use signed urls .

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