This repository was archived by the owner on May 15, 2024. It is now read-only.
[Bug] MediaPicker: System.ObjectDisposedException when trying to send picked photos to an API #1684
Labels
bug
Something isn't working
Description
I'm getting the
System.ObjectDisposedException
exception when trying to send my picked photos to an API.It doesn't seem to matter whether I use the
CapturePhotoAsync
or thePickPhotoAsync
method. Both produce this exception.The captured photo path is:
/data/user/0/cz.company.myapp/cache/2203693cc04e0be7f4f024d5f9499e13/59505a779e87403e919e155bb5f2e6ea/1d045557fc9447f1ae0220bfd0255e4c.jpg
The picked photo path is:
/storage/emulated/0/Android/data/cz.company.myapp/cache/2203693cc04e0be7f4f024d5f9499e13/ee31f7ca8f9641f1b0421b594090df3e/IMG_20210209_091737.jpg
The full exception I'm getting is:
Steps to Reproduce
1. Pick the photo
2. Create to send the files using the
MultipartFormDataContent
in aHttpRequestMessage
Expected Behavior
The app doesn't throw any exception and the photo is successfully sent.
Actual Behavior
The app throws the
System.ObjectDisposedException
exception upon trying to send the files to an APIBasic Information
The text was updated successfully, but these errors were encountered: