This video describes how to upload files in the cloud storage (firebase) using flutter. You can upload files images, mp3, pdf and videos.
Firebase and Cloud Storage | Cloud storage in Flutter | Uploading *
Enter firebase…(Cloud Storage)
Install the plugin firebase_storage
dependencies: firebase_storage: ^2.0.0
NOTE: You need to have a firebase project and all the setup done, before using any utilities related to Firebase…
final StorageReference storageRef =
FirebaseStorage.instance.ref().child(fileName);
StorageReference (Part of firebase_storage), is used to get an instance of the Cloud Storage reference.
Here, the fileName is the name that you want to give to the file uploaded.
You can specify the various parameters regarding the file in StorageMetadata:
Content-Type: The content type (MIME type) of the StorageReference.
Cache-Control, Content-Disposition, Content-Encoding, Content-Language and CustomMetaData.
This uploadTask is a future, so you might wanna show the user some progress bar etc. After the file is uploaded, you may want to get the download url…right???? We do this by….
final StorageTaskSnapshot downloadUrl =
(await uploadTask.onComplete);
Website: http://flatteredwithflutter.com/uploa...
Medium: / firebase-cloud-storage-and-flutter
In case, this helped, pass me a coffee!! 😊😊
https://www.buymeacoffee.com/aseemwangoo
#GCS #FlatteredWithFlutter #Flutter