issue with Andriod 11 and file tranfer

rick ruhl 61 Reputation points

Visual Studio 2022. 17.1.4
Xamarin Forms
community toolkit 2.01

  byte[] byteResponse = null;
             Constants.RestUrl = "" + Constants.rooftop_id + "&film_id=" + Constants.film_id + "&contact_id=" + Constants.Username;
            WebClient client = new WebClient();

            Uri uri = new Uri(Constants.RestUrl);

            Send.Text = "Sending.. please wait...";
       //     Send1.Text = "Sending.. please wait...";
            await DisplayAlert("Pathname before call, if this is blank, the filename is null", videobase64, "OK");
            string resultString;
                client.UploadFileAsync(uri, videobase64);
            catch (Exception ex)
                //resultStatus.Text = $"{ex.Message}\n{ex.StackTrace}";


videobase64= /storage/emulated/0/Android/data/com.exteres.dealerpreviews/files/DCIM/VID_20220305_193059.mp4

So when we try to upload it will work on IOS but not on Andriod

We do get the filename, but no video file.


A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
{count} votes