Skip to content

"Sharing violation on path" error in iOS 13+ while uploading images #37

@Divakar13

Description

@Divakar13

Bug Information

While uploading images to the server I am getting "Sharing violation on path" error in iOS versions 13+. In Android and iOS versions below 13, everything works fine

Version Number of Plugin: Latest
Device Tested On: iPhone 8 with OS 14.6
Simulator Tested On: NA
Version of VS: 2019 - 16.7.2
Version of Xamarin: 4.6.0.967
Versions of other things you are using: NA

Steps to reproduce the Behavior

  1. Capture the image
  2. Call CrossFileUploader.Current.UploadFileAsync() with corresponding params

Expected Behavior

Image should be uploaded properly in server

Actual Behavior

Image not uploaded in server instead the below crash occurred

"System.IO.IOException: Sharing violation on path /var/mobile/Containers/Data/Application/3E86EB2C-4CED-4F7B-9785-8288D4A107D1/Documents/tmp/tmp_20210723_100315.jpg20210723_100315-multi-part"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions