SAF: App Inventor implementation of Storage Access Framework

I want it working in 11,12,13 only

And it does work. :grinning:

1 Like

Ys in my Android 11 it’s working

Now let me download free fire game and I’ll test on it. Today

And reply

1 Like

hi help me please

I am Trying to upload Audio to Cloudinary
But it return to media uploaded to cloudinary
What is wrong with me?

Here are my Blocks

Upload block expects a file path while GotUri event return content uri.
Use FileTools extension to convert uri into path.
However you don’t SAF to pick media files, you can do it with Activity Starter.

1 Like

Ok let me Try

Thanks Very Much Live Long @vknow360

The solution is working perfectly :grin:

1 Like

ChangeLog Version 1.2

New Blocks

Changes

  • Minor internal changes to increase reading and writing speed
  • Works more efficiently now

com.sunny.saf.aix (26.8 KB)

wow… that was nice. I have to implement with SAF on my designer app so I can save my created titles to SD Card! So happy and see to granting permission to SD Card! I explore it last day and looks like I need to implement it

So you have any issue or need help?

I don’t know how to use it but I read all your articles in the first post. :grin:

How to Make “Copy Image to the Specific Document Tree Directory”?

CopyDocument block may or may or not work so instead use workaround.
Read from document as byte array with ReadAsByteArray block and store in a variable.
Create a document in destination dir with CreateDocument block. After document creation is successful and you get uri, now write byte array you read to this uri with WriteAsByteArray block.

OK. I will do this way. I will tell you if anything is OK. If anything is not OK, I will tell you again. :slight_smile:

There are more examples in this thread.

Do check out.

it says “no content provider” in my test snackbar. How can i fix this problem?

Show your blocks.


here

from here, it says Invalid URI while Do it the Create Document

I got this message after allowing my folder:
No persistable permission grants found for UID 10407 and Uri content://com.android.externalstorage.documents/…