foobnix / LibreraReader

Book Reader for Android
http://librera.mobi
Other
2.87k stars 305 forks source link

Support SAF document provider #1142

Closed antrmn closed 1 year ago

antrmn commented 1 year ago

Currently, i get "Incorrect Value" error if I try to add a folder from a document provider (E.g. Nextcloud).

I think it would be a nice addition to implement access to SAF document providers. This way, it would be possible to use a cloud storage in a transparent way

foobnix commented 1 year ago

Please try to add Nextcloud path as a resource https://librera.mobi/faq/how-to-delete-file-from-external-sd-card/

What Nextcloud application do you use?

foobnix commented 1 year ago

By the documentation, not all apps support SAF TREE navigation (For example official GDrive), only single file selection. So your Nexcloud client may not support this feature.

antrmn commented 1 year ago

Please try to add Nextcloud path as a resource

Nextcloud directories are added as storage.

Screenshot_20230804-104133~2.png

Each entry marked in red is a different NextCloud directory. As soon as I try to add them to the folders to scan, I get "Incorrect Value".

If I go to the "Folder" tab, I can't see the content of the storages above, but I can't open any of them. I get the error File not found /storage/Emulated/0/Android/data/com.foobniz...

What Nextcloud application do you use?

The official NextCloud App, available on Play Store.

By the documentation, not all apps support SAF TREE navigation (For example official GDrive), only single file selection. So your Nexcloud client may not support this feature.

Nextcloud should support tree navigation. It is possible to select Nextcloud directories. It is possible to navigate the Nextcloid directories using file managers such as MiXplorer.

antrmn commented 1 year ago

I believe this issue has not been discussed enough before being closed.

Selecting a NextCloud directory for both profile or libraries results in an error. SAF support is there, but could be improved I guess.