2

I'm using Xamarin.Dialog.Plugin.FilePicker to pick a text file, and it works for me, but when I want to save a text file using CrossFilePicker.Current.SaveFile(fileData), a file destination picker is not openning.

Any sugestion to save a file on a destination from my choose using Xamarin Forms?

Roman Marusyk
  • 23,328
  • 24
  • 73
  • 116

1 Answers1

0

I think the SaveFile() is not doing what you expect. When you look e.g. at the Android implementation, it only saves the file to the external storage folder for the app. It's not meant to open a "save file" requester.

The real solution depends on your use case. If you want to open the file in another application, you have to implement a ContentProvider and open a content:// URL that your app handles, by using Intent.ActionView or similar. There currently is no Xamarin Plugin for doing this.

vividos
  • 6,468
  • 9
  • 43
  • 53