MaterialFiles icon indicating copy to clipboard operation
MaterialFiles copied to clipboard

Add WebDAV support

Open zhanghai opened this issue 5 years ago • 14 comments

This is the only feature for which I still use a proprietary file manager. Mounting remote filesystems is a must. Is there an ETA on this issue being implemented?

mister-monster avatar Dec 07 '19 01:12 mister-monster

Will be the next bigger thing after SMB because more people are asking for it.

zhanghai avatar Dec 07 '19 03:12 zhanghai

Does this also include providing access to files through Storage Access Framework? Meaning, one could use SAF to access WebDAV through Material Files?

alensiljak avatar Apr 15 '20 09:04 alensiljak

If SMB is implemented, other apps can use the file picker from this app to pick files on SMB (i.e., FileProvider). There isn't a plan for this app to provide a fully-featured DocumentsProvider though.

zhanghai avatar Apr 15 '20 18:04 zhanghai

Thanks for the clarification.

alensiljak avatar Apr 15 '20 18:04 alensiljak

If SMB is implemented, other apps can use the file picker from this app to pick files on SMB (i.e., FileProvider). There isn't a plan for this app to provide a fully-featured DocumentsProvider though.

I'm not quite sure what exactly this means. Will it be possible to explore a storage and to open a document (i.e. a PDF) work in MaterialFiles? :thinking:

alexanderadam avatar Jan 15 '21 19:01 alexanderadam

Yes.

zhanghai avatar Jan 15 '21 20:01 zhanghai

If Material Files can add webDAV support, I can continue to use KeePassDX happily.

crisqyxw avatar Jun 26 '21 00:06 crisqyxw

If Material Files can add webDAV support, I can continue to use KeePassDX happily.

Can't you use Round Sync (website)?

alexanderadam avatar Jun 26 '21 06:06 alexanderadam

If Material Files can add webDAV support, I can continue to use KeePassDX happily.

Can't you use RCX (RClone)?

I haven't heard about this app before and thanks a lot about your advice.

crisqyxw avatar Jul 04 '21 05:07 crisqyxw

Is there any progress on this?

juxuanu avatar Nov 01 '21 02:11 juxuanu

Would love to see WebDAV support in MaterialFiles. I mostly completely switched from FX to MaterialFiles, but I still use FX for its WebDAV support.

EDIT: FYI: I just recently learned that you can access WebDAV mounts in Material Files by using DavX: https://www.youtube.com/watch?v=FwfwNXFtvYE

prg318 avatar Sep 30 '22 18:09 prg318

Would love to see WebDAV support in MaterialFiles. I mostly completely switched from FX to MaterialFiles, but I still use FX for its WebDAV support.

EDIT: FYI: I just recently learned that you can access WebDAV mounts in Material Files by using DavX: https://www.youtube.com/watch?v=FwfwNXFtvYE

Thanks.

配合 DAVx⁵ 确实可以

TaivasJumala avatar Dec 02 '23 07:12 TaivasJumala

Is there any progress on this?

@juxuanu messages like this, unless you are contributing economically, get the opposite effect they get at work. A better approach is "how can I help to get XYZ happen?".

aguaviva avatar Dec 16 '23 12:12 aguaviva

I've added WebDAV support and tested with one public test server.

Please feel free to try out the latest master code, e.g. an APK from here. Note that since it's mostly untested right now, please beware when using it for data not backed up.

zhanghai avatar Feb 27 '24 01:02 zhanghai

I've added WebDAV support and tested with one public test server.

Please feel free to try out the latest master code, e.g. an APK from here. Note that since it's mostly untested right now, please beware when using it for data not backed up.

webdav打开根目录正常,点击任何一个目录都提示: 微信图片_20240306114750 我的环境是nginx proxy manager做的转发,使用其它几个支持webdav的都可以正常访问

mysll avatar Mar 06 '24 03:03 mysll

@mysll 可以检查下 https://github.com/bitfireAT/davx5-ose/ 可以用吗?

这个 HTTPS 重定向到 HTTP 确实不太安全,可能被攻击者利用之类的

zhanghai avatar Mar 06 '24 05:03 zhanghai

@mysll 可以检查下 https://github.com/bitfireAT/davx5-ose/ 可以用吗?

这个 HTTPS 重定向到 HTTP 确实不太安全,可能被攻击者利用之类的

davx5点开看不见文件夹里的内容,我这个环境是外部访问都是https->nginx->webdav nginx到webdav是走内网http 也就是说webdav返回的是http内部地址,但是http的连接是通不过我https->nginx那一步,访问还是要走外部https的链接,是不是应该文件夹的地址应该是用我设置的https://url+文件夹

mysll avatar Mar 06 '24 08:03 mysll

@mysll 可以检查下 https://github.com/bitfireAT/davx5-ose/ 可以用吗? 这个 HTTPS 重定向到 HTTP 确实不太安全,可能被攻击者利用之类的

davx5点开看不见文件夹里的内容,我这个环境是外部访问都是https->nginx->webdav nginx到webdav是走内网http 也就是说webdav返回的是http内部地址,但是http的连接是通不过我https->nginx那一步,访问还是要走外部https的链接,是不是应该文件夹的地址应该是用我设置的https://url+文件夹

不用处理了,我nginx里把地址重定向到https就解决了

mysll avatar Mar 06 '24 08:03 mysll

@mysll 可以检查下 https://github.com/bitfireAT/davx5-ose/ 可以用吗? 这个 HTTPS 重定向到 HTTP 确实不太安全,可能被攻击者利用之类的

davx5点开看不见文件夹里的内容,我这个环境是外部访问都是https->nginx->webdav nginx到webdav是走内网http 也就是说webdav返回的是http内部地址,但是http的连接是通不过我https->nginx那一步,访问还是要走外部https的链接,是不是应该文件夹的地址应该是用我设置的https://url+文件夹

不用处理了,我nginx里把地址重定向到https就解决了

顺便说一句,这个子文件的访问地址是不是应该拼接起来呢,而不是用webdav返回的地址,应该用配置的协议+主机名+端口+文件夹的路径,其它几个能访问感觉是拼接的,所以不存在https和http的问题,因为http是不能通过我的nginx进行转发的

mysll avatar Mar 06 '24 09:03 mysll

按照 WebDAV 标准的话,服务器既然返回了地址就应该相信服务器。

zhanghai avatar Mar 06 '24 09:03 zhanghai

What servers is this webdav client known to work with?

aguaviva avatar Mar 06 '24 20:03 aguaviva

按照 WebDAV 标准的话,服务器既然返回了地址就应该相信服务器。

写了个测试webdav客户端,看协议返回的目录都是相对路径,所以问题也不是地址拼接导致的,如果还有人一样的环境有同样的问题,那就改下nginx配置吧

mysll avatar Mar 07 '24 03:03 mysll

What servers is this webdav client known to work with?

I think any server that adheres to the WebDAV standard without bugs should work.

I personally tested chezdav and it has a server side bug when retrieving files. I also tested rclone serve webdav and it mostly worked.

I would be interested to know if Apache HTTP Server mod_dav and SabreDAV (IIRC NextCloud etc is using it) is working as well.

Here's a link to a more recent APK: https://github.com/zhanghai/MaterialFiles/actions/runs/8138231255

zhanghai avatar Mar 07 '24 04:03 zhanghai