title: How to upload pdf file into firebase by using iOS
body: <p>Can I upload <code>pdf</code> files into firebase using <code>Swift</code>?. 
  If it is possible please share me the code.</p>
  
  <p>I'm using the below code</p>
  
  <pre><code>let proofRef = filesstorgRef.child(timestamp)
  
  let uploadTask = proofRef.putData(data, metadata: nil, completion: { (metadata, error) in
     if error != nil {
         //print("Failed to upload image:", error)
         return
     }
     if let fileUrl = metadata?.downloadURL()?.absoluteString {
         completion(fileUrl)
     }
  })
  uploadTask.observe(.progress) { (snapshot) in
     if (snapshot.progress?.completedUnitCount) != nil {
         print("ImageUploadingPerCent===  \(String(describing: snapshot.progress?.completedUnitCount))")
     }
  }
  uploadTask.observe(.success) { (snapshot) in
     print("ImageUploading Success")
  }
  uploadTask.observe(.failure) { (snapshot) in
     LoadingView.sharedInstance.visible(visible: false)
     print("ImageUploading failure")
  }
  </code></pre>
  
  <p>thanks in advance</p>