jamesmontemagno / MediaPlugin

Take & Pick Photos and Video Plugin for Xamarin and Windows
MIT License
711 stars 360 forks source link

DirectoryNotFoundException occurred in xamarin forms ios using plugin.media.crossmedia #920

Open surendhar2 opened 3 years ago

surendhar2 commented 3 years ago

Bug Information

Version Number of Plugin: 5.0.1 Device Tested On: Ipod touch 6th generation v12.4.8 , Ipad air v12.4.8 Version of VS: 16.8.2 Version of Xamarin.Forms: 4.8.0.1821

Code snippet

using (var file = await CrossMedia.Current.TakePhotoAsync(options)) { ..... }

I am using cross media for take photo in xamarin forms ios(Above code). I am getting this error in app center,

System.IO.DirectoryNotFoundException: Could not find a part of the path "/var/mobile/Containers/Data/Application/D9CD5B7E-D0AD-41A1-97DA-9B6FC4471955/Documents/myapp/2266603_21-1-2021-12-0-21-4152..jpg"

How to resolve this error?