step-up-labs / firebase-storage-dotnet

C# library for Firebase Storage

Repository from Github https://github.comstep-up-labs/firebase-storage-dotnetRepository from Github https://github.comstep-up-labs/firebase-storage-dotnet

Can't upload audio and video files

Tunga12 opened this issue · comments

        // Get any Stream — it can be FileStream, MemoryStream or any other type of Stream
        var stream = new MemoryStream(File.ReadAllBytes(textAudio.Text));


        // Construct FirebaseStorage with path to where you want to upload the file and put it there
        var task = new FirebaseStorage("my-bucket.appspot.com")
         .Child("audio")
         .Child(Path.GetFileName(textAudio.Text))
         .PutAsync(stream);

        // Track progress of the upload
        task.Progress.ProgressChanged += (s, ex) => Console.WriteLine($"Progress: {ex.Percentage} %");

        // Await the task to wait until upload is completed and get the download url
        var downloadUrl = await task;

        MessageBox.Show("Download at: " + downloadUrl);

downloadUrl is empty. And when i check the firebase console nothing is uploaded. But the task shows progress until 100%.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

commented

Closing the issue due to inactivity. Feel free to re-open

Hi, any solution?