Get immediate access to this and 4,000+ other videos and books.

Take your career further with a raywenderlich.com Pro subscription. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it’s simply the best investment you can make in your development career.

Download Data from Cloud Storage Pro

This video was last updated on Aug 30 2022

Once files have been uploaded to the Cloud Storage, you also need to retrieve them into your app and show them to the users. In this lesson you’ll see the steps required to download files from Cloud Storage.

Contributors

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

You can unlock the rest of this video course, and our entire catalogue of books and videos, with a raywenderlich.com Professional subscription.

Deleting files from your storage bucket is a straightforward process: basically, you just need to know the full path of the file you need to delete, and call the delete method: then, if the file exists, it gets deleted.

Future deleteImage(String path) async { 
    path = 'activity_images/' + basename(path); 
    storage.ref(path).delete(); 
  } 
if (activity.imagePath != '' || activity.imagePath != null) {
  helper.deleteImage(activity.imagePath!); 
} 

Reviews

Comments