title: Upload to Firebase storage tasks about 30 minutes
body: <p>The following code tasks very long to complete.  Any ideas?</p>
  <pre><code>Future&lt;String&gt; uploadFile({required File file}) async {
      //String downloadURL = &quot;&quot;;
  
      final fileName = file.uri.pathSegments.last;
      final uuid = Uuid();
      final filePath = &quot;videos/${uuid.v4()}_$fileName&quot;;
      debugPrint(filePath);
      final storage = FirebaseStorage.instance.ref().child(filePath);
      final uploadTask = storage.putFile(file);
  
      final snapshot = await uploadTask.whenComplete(() {});
      final downloadURL = await snapshot.ref.getDownloadURL();
  
      return downloadURL;
  }
  </code></pre>