MaterialFiles icon indicating copy to clipboard operation
MaterialFiles copied to clipboard

Feature Request: Add Nextcloud Integration

Open qomarhsn opened this issue 7 months ago • 4 comments

Hi, first off—thanks for this fantastic file manager! It's clean, fast, and well-aligned with Material Design principles.

I'd like to request a feature: Nextcloud integration, similar to how FTP, SMB, and WebDAV servers are currently supported.

Use Case:

Nextcloud is a widely-used self-hosted cloud solution that many privacy-conscious users rely on. Integrating it directly into Material Files would allow users to:

  • Browse, upload, and download files stored on their Nextcloud server.
  • Stream media files directly from Nextcloud.
  • Manage remote files using the same interface as local and other network file systems.

Implementation Suggestion:

Since Nextcloud supports WebDAV, basic functionality might already be achievable via existing WebDAV support. However, full Nextcloud integration could include:

  • OAuth2 or app password support for more secure authentication.
  • Auto-discovery of WebDAV endpoints based on the Nextcloud base URL.
  • Enhanced metadata support (e.g., tags, shares) if available via Nextcloud API.

Benefits:

  • Makes Material Files more useful for users in the open-source and privacy-focused community.
  • Provides a seamless experience across local and cloud-hosted files.
  • Strengthens the app’s position as a powerful, modern file manager for Android.

Thanks again for your hard work!

qomarhsn avatar Apr 11 '25 16:04 qomarhsn

You can use RSAF and then access your Nextcloud storage as external storage thanks to Android's Storage Access Framework (SAF).

ghost avatar Apr 12 '25 21:04 ghost

You can use RSAF and then access your Nextcloud storage as external storage thanks to Android's Storage Access Framework (SAF).

I didn't find the Nextcloud option on RSAF.

qomarhsn avatar Apr 13 '25 02:04 qomarhsn

RSAF is basically a frontend to rclone. You can setup a Nextcloud remote with WebDAV. As you can see in the rclone documentation, in combination with Nextcloud (and similar services) it supports some extra features not available with standard/plain WebDAV like hashes and modification time.

RSAF also stores your authentication information as securely as possible. You can enable the biometric applock to secure access to its settings and encrypt the configuration when you want to export it. Neither Material Files, rcx or round sync support this and therefore I am not comfortable with connecting my cloud storage directly through either of these. rclone (and therefore RSAF) is also far more advanced with regard to SFTP, SMB etc.

EDIT: Material Files does support public key authentication. I didn't look carefully enough and missed this.

Material Files has very good support for SAF unlike many other file managers or apps. Personally I don't see a need to reinvent the wheel and I am a strong believer in the "do one thing and do it right" approach.

ghost avatar Apr 13 '25 08:04 ghost

I would like to add another vote for nextcloud integration. I love this app, but I can't get a nextcloud webdav configured properly. If it's already "doable" then an exmple confguration would be helpful.

Thanks

CaptainPackers avatar Apr 19 '25 13:04 CaptainPackers

This is how I added my private Nextcloud account to Material Files:

  1. Add Storage --> WebDAV-Server
  2. Hostname: host.domain.tld (no https://)
  3. Port: 443
  4. Path: /remote.php/dav/files/
  5. Name: you-name-it
  6. Protocol: HTTPS
  7. Authentication: Password
  8. Username:
  9. Password: your-t0p-s3cr37-p4s5w0rD. (best practice: create an app token/password in Nextcloud for your user and use it here)
  10. Save

Attention: Path cannot be left empty, and it should point to your users files (last part of the path is your username).

Now I am looking for a way to make Material Files the system file manager...

rncwnd79 avatar Aug 08 '25 06:08 rncwnd79

WOW! IT WORKS!!! THANK YOU THANK YOU THANK YOU. Please edit point #4 above and finish the path with a generic username. I initially overlooked that critical detail because it was only present as a note.

I wish developers of a fine app like this would take a few minutes to provide some simple examples. It would probably make their apps much more popular if it weren't such a struggle to figure out how to use it!

CaptainPackers avatar Aug 11 '25 15:08 CaptainPackers