Bug 23677 - ProgressPercentage is always 100% with UploadProgressChanged event
Summary: ProgressPercentage is always 100% with UploadProgressChanged event
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.18.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2014-10-08 02:04 UTC by naki.online
Modified: 2017-06-28 19:19 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description naki.online 2014-10-08 02:04:37 UTC

I'm using a media picker for a photo and upload to a server with UploadFileAsync.  I don't see progress is always 100% when the UploadProgressChanged event is being called.  It happen to iOS and Android version of Xamarin.

                            var picker = new MediaPicker(this);
                            picker.PickPhotoAsync().ContinueWith(t =>
                                if (t.IsCanceled || t.IsFaulted)

                                MediaFile media = t.Result;

                                lock (umgr.Uploaders)
                                        WebClient wc.UploadFileAsync(new Uri(App.GetAPIQueryUrl("/Upload")), media.Path);
                                    catch (Exception ex)
                            }, TaskScheduler.FromCurrentSynchronizationContext());

            private void UploadProgressChangedCallback(object sender, UploadProgressChangedEventArgs e)
                // e.ProgressPercentage is always 100%. e.BytesSent and e.TotalBytesToSend are file size

Comment 1 Ram Chandra 2014-10-08 12:37:22 UTC
I have checked this issue but I am unable to reproduce this issue.

Could your please you please provide sample application and build information? So that we can reproduce this issue at our end.

You can get build information from here:

For Xamarin Studio :

Help => About => Show details => Show Details => Copy Information.

For Visual Studio : 

Help => About  Microsoft Visual Studio => Copy Info
Comment 2 Chris Hardy [MSFT] 2017-06-28 19:19:16 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!