How would I store a video into firebase storage from swift?

Solutions Collect From Internet About “How would I store a video into firebase storage from swift?”

1) Create a reference to your storage

2) Upload your file. (It can be video or audio or images)

import FirebaseStorage
var storage = FIRStorage.storage()
var storageRef = storage.reference(forURL: "gs://xyz.appspot.com")

let uploadTask = storageRef.putFile(from: localFile, metadata: nil) { metadata, error in
  if let error = error 
  {
    //do error handle
  } 
}

The document from Firebase also explains nicely on how to upload and download contents from firebase storage.