step-up-labs / firebase-storage-dotnet

C# library for Firebase Storage
MIT License
140 stars 35 forks source link

Can't upload audio and video files #26

Closed Tunga12 closed 4 years ago

Tunga12 commented 5 years ago
        // 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%.

stale[bot] commented 4 years ago

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.

stale[bot] commented 4 years ago

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

aleeherasimiuk commented 4 years ago

Hi, any solution?