When I want to upload a file using Firefox or another app, I have the option to “BROWSE FILES IN OTHER APPS” like Drive, Photos, a file manager program, Dropbox - but no Nextcloud option. Currently I have to save a file onto my phone then use the file manager option to upload it. I’m wondering what this feature is even called and if there’s an open request or anything to add it.
I think to do that a “FileProvider” will have to be defined.
https://developer.android.com/reference/androidx/core/content/FileProvider
Nextcloud does have FileProvider used a few times and in the manifest but it doesn’t show up as an app to choose a file from.
This other app does
I think it needs android.intent.action.PICK or android.intent.action.GET_CONTENT in AndroidManifest.xml - likely some other code to make this actually work
Probably just talking to myself, but adding this to AndroidManifest.xml did make it so Nextcloud shows up as a file picker. Just need to figure out what else I need to add to make it actually work and share a file, probably a FileProvider thing
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT"/>
<data android:mimeType="*/*"/>
<category android:name="android.intent.category.OPENABLE"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
This is strange, on GrapheneOS on my Pixel 6a, it showed up always as far as I can remember, but using the stock Google image, it does not. Maybe it is deliberately done on the part of Google
?
I see it now shows up in some apps and not others. I can see it from Google Drive and from FIles under Other Storage, but not Firefox (it did on my Pixel 5a but not Pixel 8 pro) or Voice
I do not really need this function. Maybe I don’t quite understand your problem.
But on my Android device i have got the app Dateimanager installed. From browser i can select from HTTP-upload field the Dateimanager and in the Dateimanager my Nextclouds.
But this is more useful for foreign Nextcloud. For my Nextclouds i use the Android app Nextcloud.
In file picker (chooser) there are file sources, like your internal storage or cloud options.
Depending on the build of the Android image, Nextcloud does not show.
This would be useful if you do not want to download the file in advance, but still be able to pick it to use it on the fly.