0

I'm building an app that downloads an image from an outside API and saves it to external storage so another app has access to it. With the new storage permission changes (mainly WRITE_EXTERNAL_STORAGE not existing or returning denied automatically), I'm unable to find a way to do this. Even saving to the media directory (images) would be okay, but I'm yet to find any samples on how to do this in MAUI. I've tried with the FileSaver package from the Community toolkit, but it simply doesn't work (since it requires the write permission which returns denied every time).

Has anyone managed to get it working? This is a question about the WRITE scenario, I've seen plenty of workarounds for reading but none of them seem to work.

Thanks!

primix
  • 355
  • 1
  • 8
  • Does this answer your question? [Android 13 - How to request WRITE\_EXTERNAL\_STORAGE](https://stackoverflow.com/questions/73620790/android-13-how-to-request-write-external-storage) – Jason Aug 25 '23 at 13:06
  • Not really. I need a way to save to those locations, not just get the permission – primix Aug 25 '23 at 13:12
  • the last line of the accepted answer: "or if you really need to write to a directory your app doesn't own get that file manager permission from Google" – Jason Aug 25 '23 at 13:14
  • yeah, that complicates things with the google play publishing then... Ideally, I'd want a way to do it as close to best practice in the new versions as possible – primix Aug 25 '23 at 13:18

0 Answers0