owncloud / android

:phone: The ownCloud Android App
GNU General Public License v2.0
3.85k stars 3.06k forks source link

Use different native Android upload dialogue #4166

Open fwinn opened 1 year ago

fwinn commented 1 year ago

Is your feature request related to a problem? Please describe. I wanted to upload some images stored in Google Photos to Owncloud. I noticed there are different upload dialogues on the part of Android when uploading files via the Android app and via the web interface. The one via the app seems to be more general-file-related, it offers imports from Google Drive, bug reports, ownCloud itself and system traces. The upload dialog via the web app on the other hand offers imports from Google Drive, Google Photos, Media, Bitmoji, bug reports and system traces, so it seems to be a bit more media-related rather than file-related.

Describe the solution you'd like Add a way to upload files which opens the Android file sselection with access to Google Photos. (So maybe two upload buttons, one for media and one for other files?)

Describe alternatives you've considered Replace the file-related dialogue with the media-related one. But then imports from other general-file-related cloud services like ownCloud won't probably work anymore.

Additional context If you want to go further with this topic, I think ownCloud should appear on both the media-related and the file-related file selection dialogues (like e. g. Google Drive does), so that imports from ownCloud are possible for media-related uploads (to other apps).

Let me know if you need additional information or screenshots.

TASKS

PR

JuancaG05 commented 1 year ago

Hi @fwinn! Thanks for opening a new issue! I'm not sure if I understand correctly what you are asking for here. In Android, the only native "upload dialog" is the DocumentsProvider, which is the one that appears when you press the Upload > Files button. Could you add some screenshots with any example of other apps to show what you mean? Thanks 🍻

fwinn commented 1 year ago

Of course!

These are the options I get when uploading via the app: And via the browser (Firefox btw):
Screenshot_20230920-092852~2 Screenshot_20230920-092914
JuancaG05 commented 1 year ago

Aaah! I see what you mean now. So, the idea is keep using the DocumentsProvider (the native file selector we can see in your screenshots) but adding some options which redirect you to some other apps for files selection (such as Google Photos). In fact, the DocumentsProvider is provided by Android and it's the one which controls what is appearing here. What we control in this case is the ownCloud cells that appear when you upload from any app (in your first screenshot), the other cells depend on each app, whether they implement this DocumentProvider feature or not. In any case, we can take a deeper look at the DocumentsProvider to see if we can include direct access to some other apps like Gallery or Google Photos, it seems interesting! Thanks for your suggestion! 😺