Help for file component and SAF Extension

Hi there,
Hope you all are doing well :slight_smile:

I wanna created a folder inside /storage/emulated/0/Download/ with file component But Something is wrong as neither folder nor file is created. Please correct me out someone.


Permission took:

Blocks Used:


PROBLEM1 : TimeManagerDB folder is not created.


image
PROBLEM2 : Text file is not created. (I think, because of PROBLEM1)

See why

Hi @dora_paz, Thanks for quick response :slight_smile:
Let me try with /storage/emulated/0/Downloads

@dora_paz I tried with /storage/emulated/0/Downloads/TimeManagerDB

but still no folder created by File Component…

This should work (without storage permissions (WRITE permission) on Android 11+):

Of course, on Android < 11 you have to request WRITE permission.

2 Likes

Thanks @bodymindpower and @dora_paz
I found that on replacing /Download to /Downloads
The folder TimeManagerDB was created inside /storage/0/Downloads but it was only visible through ES File Explorer deep search.

Can you please help me out with PROBLEM2? @dora_paz

The actual problem is that you are trying to use file paths in SAF extension which accepts URIs.
Please read the extension thread to learn more about its usage.

1 Like

Hi, @vknow360 Glade to see you here,…
Can you please help me out, what to put in URI, I seen all the documentation but didn’t understood URI please let me know what to enter in that?

1 Like

Very Thanks Anke, Let me see if that works for me. :slight_smile:

2 Likes

Hi @bodymindpower Anke :slight_smile:
I tried this and the forder TimeManagerDB is successfully created inside Download folder of phone. But When creating text file it says:
ERROR 2103 : file can’t be created.
:frowning: All Blocks I used are same as yours.
Android 10

Try this, it should save the text file here (on all Android versions):
/Download/TimeManagerDB/myText1.txt

test2.apk (5.4 MB)

On Android 11+ this should work without storage permissions. On Android < 11 WRITE permission is requested automatically.

Note: To make sure it works, first remove this folder from your test device:
/Download/TimeManagerDB/

3 Likes

How did you make this possible to grant Write External Storage automatically for android 11?

This permission does not exist anymore for Android 11
Taifun

1 Like

Yes. so sad to see that the image saving cannot work.

Saving an image also works on newer devices. Please elaborate and provide a screenshot of your relevant blocks

Taifun

Really? If yes, what’s the better extension to save image for android 11 and later?

Saving an image also works on newer devices. Please elaborate and provide a screenshot of your relevant blocks

Taifun